diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-15 20:59:52 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-20 21:14:20 +0100 |
commit | 4d91969ed4dbcefd0e78f77494f0cb8fada9048a (patch) | |
tree | bfd050cfd9391c35563b4a31a3e8a886c802d7b8 | |
parent | NFS: Fix I/O request leakages (diff) | |
download | linux-4d91969ed4dbcefd0e78f77494f0cb8fada9048a.tar.xz linux-4d91969ed4dbcefd0e78f77494f0cb8fada9048a.zip |
NFS: Fix an I/O request leakage in nfs_do_recoalesce
Whether we need to exit early, or just reprocess the list, we
must not lost track of the request which failed to get recoalesced.
Fixes: 03d5eb65b538 ("NFS: Fix a memory leak in nfs_do_recoalesce")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.0+
-rw-r--r-- | fs/nfs/pagelist.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 301880a3ad8e..03bde9a41451 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -1092,7 +1092,6 @@ static int nfs_do_recoalesce(struct nfs_pageio_descriptor *desc) struct nfs_page *req; req = list_first_entry(&head, struct nfs_page, wb_list); - nfs_list_remove_request(req); if (__nfs_pageio_add_request(desc, req)) continue; if (desc->pg_error < 0) { |