]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix an I/O request leakage in nfs_do_recoalesce
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Feb 2019 19:59:52 +0000 (14:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:28 +0000 (14:35 +0100)
commit86e9e3773445044ec227b0ace13772bc43d9fc24
tree44c975f18c48bb5646b93227063d357ef798d4d7
parentd6bce5aed476ff66ab91d732c4c7220aa95e68c3
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>
fs/nfs/pagelist.c