]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66ec2c36295d71eef27c2be02f0737dbc03e68e1
tree259b0c479e729a7f7a0d62be2eb04720fed4ec36
parentdc3af164f364e747f8aed227fd666cc239616fa1
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: 5ee7b765cdda ("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