]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1/pnfs: Ensure that writes respect the O_SYNC flag when doing O_DIRECT
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 25 Mar 2015 22:58:53 +0000 (18:58 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 27 Mar 2015 16:39:37 +0000 (12:39 -0400)
commitc17b633efe1cb6b87d870a3cca7b0d3da50d6926
treefd6edd1d18bc1a6633a7e968089d089dd4aec6cd
parent1a05f6ca7eb8657ece808a43d1433cbd99f992e0
NFSv4.1/pnfs: Ensure that writes respect the O_SYNC flag when doing O_DIRECT

If the caller does not specify the O_SYNC flag, then it is legitimate
to return from O_DIRECT without doing a pNFS layoutcommit operation.
However if the file is opened O_DIRECT|O_SYNC then we'd better get it
right.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/direct.c
fs/nfs/file.c
fs/nfs/nfs4file.c