diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-15 14:59:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 13:19:52 +0100 |
commit | 18ae814610c519a1cc7e78b6a2bdd8fed2bd88c7 (patch) | |
tree | 424902a0bdd4b5c21d1ae6a1ee168ec4a48f2a16 /fs | |
parent | 0da4596d67565ba6940c2e9bd4ddae555b5524d8 (diff) | |
download | linux-stable-18ae814610c519a1cc7e78b6a2bdd8fed2bd88c7.tar.gz linux-stable-18ae814610c519a1cc7e78b6a2bdd8fed2bd88c7.tar.bz2 linux-stable-18ae814610c519a1cc7e78b6a2bdd8fed2bd88c7.zip |
NFS: Fix an I/O request leakage in nfs_do_recoalesce
commit 4d91969ed4dbcefd0e78f77494f0cb8fada9048a upstream.
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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-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 e422e775b66b..e34af0f86657 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -1079,7 +1079,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) { |