]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix memory leaks in nfs_pageio_stop_mirroring()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 30 Mar 2020 00:06:45 +0000 (20:06 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 17:37:56 +0000 (13:37 -0400)
commit2ccefc3c73fd150c4cc0f0e06b84bb574f128115
treee8ee285b8e6d318e14361ba392e08bc56bb20bb2
parentc47d10a1c012f795cbbfd3f55b3c565ceeb64c0b
NFS: Fix memory leaks in nfs_pageio_stop_mirroring()

If we just set the mirror count to 1 without first clearing out
the mirrors, we can leak queued up requests.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c