Commit d5880c7a authored by Vasily Averin's avatar Vasily Averin Committed by Miklos Szeredi

fuse: fix missing unlock_page in fuse_writepage()

unlock_page() was missing in case of an already in-flight write against the
same page.
Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Fixes: ff17be08 ("fuse: writepage: skip already in flight")
Cc: <stable@vger.kernel.org> # v3.13
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 501ae8ec
...@@ -1861,6 +1861,7 @@ static int fuse_writepage(struct page *page, struct writeback_control *wbc) ...@@ -1861,6 +1861,7 @@ static int fuse_writepage(struct page *page, struct writeback_control *wbc)
WARN_ON(wbc->sync_mode == WB_SYNC_ALL); WARN_ON(wbc->sync_mode == WB_SYNC_ALL);
redirty_page_for_writepage(wbc, page); redirty_page_for_writepage(wbc, page);
unlock_page(page);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment