[RHEL7,COMMIT] fuse kio: Add comment to fuse_release()

Submitted by Konstantin Khorenko on June 25, 2018, 4:01 p.m.

Details

Message ID 201806251601.w5PG11mU010816@finist_ce7.work
State New
Series "fuse kio: Add comment to fuse_release()"
Headers show

Commit Message

Konstantin Khorenko June 25, 2018, 4:01 p.m.
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@virtuozzo.com>
Date:   Mon Jun 25 19:01:01 2018 +0300

    fuse kio: Add comment to fuse_release()
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 fs/fuse/file.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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);