]> git.karo-electronics.de Git - linux-beck.git/commit
NFS: Don't call iput() in nfs_access_cache_shrinker
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 13 May 2010 16:51:06 +0000 (12:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 May 2010 19:09:36 +0000 (15:09 -0400)
commit9c7e7e23371e629dbb3b341610a418cdf1c19d91
treec211183b99860d232500bf99d12775e47c4f0f9c
parent1a81bb8a1fa62ccb9b2411ac10ce702ca4ed302a
NFS: Don't call iput() in nfs_access_cache_shrinker

iput() can potentially attempt to allocate memory, so we should avoid
calling it in a memory shrinker. Instead, rely on the fact that iput() will
call nfs_access_zap_cache().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c