diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2019-09-13 18:17:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 13:14:04 +0200 |
commit | 99a21e616426a1f34e1bf31db42c71fa91f7e6cb (patch) | |
tree | c17c2757c0616ad6c75d1de16eff8e4c10c9f507 /fs | |
parent | 831bd6ec163315131bc570370802ed9cabb5a78e (diff) | |
download | linux-stable-99a21e616426a1f34e1bf31db42c71fa91f7e6cb.tar.gz linux-stable-99a21e616426a1f34e1bf31db42c71fa91f7e6cb.tar.bz2 linux-stable-99a21e616426a1f34e1bf31db42c71fa91f7e6cb.zip |
fuse: fix missing unlock_page in fuse_writepage()
commit d5880c7a8620290a6c90ced7a0e8bd0ad9419601 upstream.
unlock_page() was missing in case of an already in-flight write against the
same page.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Fixes: ff17be086477 ("fuse: writepage: skip already in flight")
Cc: <stable@vger.kernel.org> # v3.13
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index b8f9c83835d5..fdff7bf4fa4f 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1767,6 +1767,7 @@ static int fuse_writepage(struct page *page, struct writeback_control *wbc) WARN_ON(wbc->sync_mode == WB_SYNC_ALL); redirty_page_for_writepage(wbc, page); + unlock_page(page); return 0; } |