fuse: fuse_flush() should wait on writeback
authorMaxim Patlasov <MPatlasov@parallels.com>
Thu, 10 Oct 2013 13:11:54 +0000 (17:11 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 2 Apr 2014 13:38:50 +0000 (15:38 +0200)
The aim of .flush fop is to hint file-system that flushing its state or caches
or any other important data to reliable storage would be desirable now.
fuse_flush() passes this hint by sending FUSE_FLUSH request to userspace.
However, dirty pages and pages under writeback may be not visible to userspace
yet if we won't ensure it explicitly.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c

diff --cc fs/fuse/file.c
Simple merge