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)
commitfe38d7df230b022e72014ef7aa799a4f2acfecf3
tree58ac02af5d0c373b85841f355dc0f4b5641fb885
parent6b12c1b37e5556af073c1ebfa04c1f9df3a2beaf
fuse: fuse_flush() should wait on writeback

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