Patch "NFS: Do cleanup before resetting pageio read/write to mds" has been added to the 4.1-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
NFS: Do cleanup before resetting pageio read/write to mds
to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
nfs-do-cleanup-before-resetting-pageio-read-write-to-mds.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6f29b9bba7b08c6b1d6f2cc4cf750b342fc1946cMon Sep 17 00:00:00 2001
From: Kinglong Mee <[email protected]>
Date: Sun, 20 Sep 2015 23:03:28 +0800
Subject: NFS: Do cleanup before resetting pageio read/write to mds
From: Kinglong Mee <[email protected]>
commit 6f29b9bba7b08c6b1d6f2cc4cf750b342fc1946c upstream.
There is a reference leak of layout segment after resetting pageio read/write to mds.
--- fs/nfs/read.c | 3 +++ fs/nfs/write.c | 3 +++ 2 files changed, 6 insertions(+)
fs/nfs/read.c +3 -0
@@ -72,6 +72,9 @@ void nfs_pageio_reset_read_mds(struct nf {struct nfs_pgio_mirror *mirror; +if (pgio->pg_ops && pgio->pg_ops->pg_cleanup) + pgio->pg_ops->pg_cleanup (pgio); + pgio->pg_ops = &nfs_pgio_rw_ops;/* read path should never have more than one mirror */
fs/nfs/write.c +3 -0
@@ -1331,6 +1331,9 @@ void nfs_pageio_reset_write_mds(struct n {struct nfs_pgio_mirror *mirror; +if (pgio->pg_ops && pgio->pg_ops->pg_cleanup) + pgio->pg_ops->pg_cleanup (pgio); + pgio->pg_ops = &nfs_pgio_rw_ops;nfs_pageio_stop_mirroring (pgio);
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/nfs-do-cleanup-before-resetting-pageio-read-write-to-mds.patch