[Devel] [PATCH RHEL7 COMMIT] fuse kio: Add comment to fuse_release()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Jun 25 19:01:01 MSK 2018
The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.15
------>
commit 66813a182988437028b76c99e39401df0d5415e3
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Mon Jun 25 19:01:01 2018 +0300
fuse kio: Add comment to fuse_release()
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
fs/fuse/file.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 079f139a727f..362dbe21fbb2 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -465,6 +465,8 @@ static int fuse_release(struct inode *inode, struct file *file)
/*
* Flush pending requests before FUSE_RELEASE makes userspace
* to drop the lease of the file. Otherwise, they never finish.
+ * Keep in mind, that in kio case fuse_sync_writes() currently
+ * waits all type of requests (not only write).
*/
mutex_lock(&inode->i_mutex);
fuse_sync_writes(inode);
More information about the Devel
mailing list