]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: make sure data is on disk before calling ->fsync
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Dec 2009 16:44:45 +0000 (17:44 +0100)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 6 Jan 2010 22:37:26 +0000 (17:37 -0500)
commit340c6cd9ea2743eaf9c3805c590c1cada20b3ded
tree2a769132446f73cf593661428e68d7086168a5b2
parent67d63be2fbe92e05392b0aab8aed59cb39e0a68c
nfsd: make sure data is on disk before calling ->fsync

nfsd is not using vfs_fsync, so I missed it when changing the calling
convention during the 2.6.32 window.  This patch fixes it to not only
start the data writeout, but also wait for it to complete before calling
into ->fsync.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/vfs.c