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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Oct 2018 21:20:57 +0000 (17:20 -0400)
commitfdbd1a2e4a71adcb1ae219fcfd964930d77a7f84
tree728f68714faa6fddc69ea60e8ff8a9f61d3ed09c
parente732f4485a150492b286f3efc06f9b34dd6b9995
nfs: Fix a missed page unlock after pg_doio()

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