]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit7211a4e859ad070b28545c06e0a6cb60b3b8aa31
tree2a769132446f73cf593661428e68d7086168a5b2
parentf69ac2f5a36948e1adf071074414c5d1907b89b7
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