]> granicus.if.org Git - zfs/commit
zfs does not honor NFS sync write semantics
authorGeorge Wilson <gwilson@zfsmail.com>
Mon, 11 Mar 2019 16:13:37 +0000 (12:13 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Mar 2019 16:13:37 +0000 (09:13 -0700)
commitb1b94e9644ee6af27ce71d127618b7d5323561c6
tree5972c857d1005562e42d5b8f77aee119f5ffe45c
parent1118f9944924678095aa43636dce742a03c5fde3
zfs does not honor NFS sync write semantics

The linux kernel's nfsd implementation use RWF_SYNC to determine if the
write is synchronous or not. This flag is used to set the kernel's I/O
control block flags. Unfortunately, ZFS was not updated to inspect these
flags so NFS sync writes were not being honored.

This change maps the IOCB_* flags to the ZFS equivalent.

Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Wilson <george.wilson@delphix.com>
Closes #8474
Closes #8452
Closes #8486
module/zfs/zpl_file.c