SUNRPC: Dont run rpcauth_cache_shrinker() when gfp_mask is GFP_NOFS
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 13 May 2010 16:51:03 +0000 (12:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 May 2010 19:09:34 +0000 (15:09 -0400)
commitd300a41ef1c39cc5e6b90fd8834ea7ab16b5c48f
tree2d439ac7e0a95329daf686ea27ba0cea35acb301
parent93870d76fee22e887aa6e7e1fc904dbeca976928
SUNRPC: Dont run rpcauth_cache_shrinker() when gfp_mask is GFP_NOFS

Under some circumstances, put_rpccred() can end up allocating memory, so
check the gfp_mask to prevent deadlocks.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth.c