From: Trond Myklebust Date: Wed, 12 Dec 2007 03:01:56 +0000 (-0500) Subject: NFSv2/v3: Fix a memory leak when using -onolock X-Git-Tag: v2.6.24-rc6~56^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cef338b30c110daf547fb13d99f0c77f2a79fbc;p=pandora-kernel.git NFSv2/v3: Fix a memory leak when using -onolock Neil Brown said: > Hi Trond, > > We found that a machine which made moderately heavy use of > 'automount' was leaking some nfs data structures - particularly the > 4K allocated by rpc_alloc_iostats. > It turns out that this only happens with filesystems with -onolock > set. > The problem is that if NFS_MOUNT_NONLM is set, nfs_start_lockd doesn't > set server->destroy, so when the filesystem is unmounted, the > ->client_acl is not shutdown, and so several resources are still > held. Multiple mount/umount cycles will slowly eat away memory > several pages at a time. Signed-off-by: Trond Myklebust Acked-by: NeilBrown --- Reading git-diff-tree failed