]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nfs: Fix a missed page unlock after pg_doio()
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 18 Oct 2018 19:01:48 +0000 (15:01 -0400)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:32 +0000 (19:57 -0600)
commitdb52102bf7b698dc1588aee07aa35b43a4577486
tree2d4e2c8e9697e5b5deb554258cce5396f890785d
parent5eb7ad9e173f3c6bcdedb3606c0337fa089b7ad2
nfs: Fix a missed page unlock after pg_doio()

BugLink: https://bugs.launchpad.net/bugs/1836802
commit fdbd1a2e4a71adcb1ae219fcfd964930d77a7f84 upstream.

We must check pg_error and call error_cleanup after any call to pg_doio.
Currently, we are skipping the unlock of a page if we encounter an error in
nfs_pageio_complete() before handing off the work to the RPC layer.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/pagelist.c