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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:15:10 +0000 (11:15 -0800)
commiteecbf2c22b3f0dca05a199a8992ac2158266dfbd
treefb44fdc86edcd86e571d956023510e176cd79994
parent1796b3898e51d4f435f17b8ff54458f5fd541d46
nfs: Fix a missed page unlock after pg_doio()

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>
fs/nfs/pagelist.c