mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
NFS: Fix I/O request leakages
When we fail to add the request to the I/O queue, we currently leave it to the caller to free the failed request. However since some of the requests that fail are actually created by nfs_pageio_add_request() itself, and are not passed back the caller, this leads to a leakage issue, which can again cause page locks to leak. This commit addresses the leakage by freeing the created requests on error, using desc->pg_completion_ops->error_cleanup() Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Fixes:a7d42ddb30("nfs: add mirroring support to pgio layer") Cc: stable@vger.kernel.org # v4.0:c18b96a1b8: nfs: clean up rest of reqs Cc: stable@vger.kernel.org # v4.0:d600ad1f2b: NFS41: pop some layoutget Cc: stable@vger.kernel.org # v4.0+
This commit is contained in:
parent
2137397c92
commit
f57dcf4c72
1 changed files with 21 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue