[Devel] [PATCH RHEL7 COMMIT] fuse: Add forgotten unlock_page() into fuse_readpages_fill()

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jul 19 15:44:24 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-862.6.3.vz7.62.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.6.3.vz7.62.4
------>
commit c1796c5a0830154fe1d1063f7473973890d5019a
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Thu Jul 19 15:44:23 2018 +0300

    fuse: Add forgotten unlock_page() into fuse_readpages_fill()
    
    We have to unlock page on error path as seen at the code
    above the place, this patch modifies. So, just do it.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 fs/fuse/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index d7bd723635ec..d0451cfcd3ee 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1238,6 +1238,7 @@ static int fuse_readpages_fill(void *_data, struct page *page)
 	}
 
 	if (WARN_ON(req->num_pages >= req->max_pages)) {
+		unlock_page(page);
 		fuse_put_request(fc, req);
 		return -EIO;
 	}


More information about the Devel mailing list