NFSv4/pnfs: Fix a page lock leak in nfs_pageio_resend()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Aug 2019 19:19:54 +0000 (15:19 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Aug 2019 12:56:04 +0000 (08:56 -0400)
commitf4340e9314dbfadc48758945f85fc3b16612d06f
tree259b0c479e729a7f7a0d62be2eb04720fed4ec36
parent9821421a291b548ef4369c6998745baa36ddecd5
NFSv4/pnfs: Fix a page lock leak in nfs_pageio_resend()

If the attempt to resend the pages fails, we need to ensure that we
clean up those pages that were not transmitted.

Fixes: d600ad1f2bdb ("NFS41: pop some layoutget errors to application")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.5+
fs/nfs/pagelist.c