NFS: Fix a memory leak in nfs_do_recoalesce
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 27 Jul 2015 14:23:19 +0000 (10:23 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 27 Jul 2015 14:33:08 +0000 (10:33 -0400)
commit03d5eb65b53889fe98a5ecddfe205c16e3093190
tree9fbd7052c8f5663170d119ac94a0d2a6a00dd392
parent115c48d7a5351abeadd0c8a3dc87eca3d66a6475
NFS: Fix a memory leak in nfs_do_recoalesce

If the function exits early, then we must put those requests that were
not processed back onto the &mirror->pg_list so they can be cleaned up
by nfs_pgio_error().

Fixes: a7d42ddb30997 ("nfs: add mirroring support to pgio layer")
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c