diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-08-24 15:07:35 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-08-24 15:07:35 -0400 |
commit | b569ad34926defcff998f214afeb260331165985 (patch) | |
tree | 79dc438ecac870a822df190ce130ac9bf1866964 /fs/nfs | |
parent | a53e77fa57145cef6e2a63925db3d426128b2335 (diff) |
NFSv4: nfs4_proc_async_renew should use a GFP_NOFS allocation
We shouldn't allow the renew daemon to do direct reclaim on the NFS
partition.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8c77039e7a81..776b41a16469 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3397,7 +3397,7 @@ int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred) | |||
3397 | 3397 | ||
3398 | if (!atomic_inc_not_zero(&clp->cl_count)) | 3398 | if (!atomic_inc_not_zero(&clp->cl_count)) |
3399 | return -EIO; | 3399 | return -EIO; |
3400 | data = kmalloc(sizeof(*data), GFP_KERNEL); | 3400 | data = kmalloc(sizeof(*data), GFP_NOFS); |
3401 | if (data == NULL) | 3401 | if (data == NULL) |
3402 | return -ENOMEM; | 3402 | return -ENOMEM; |
3403 | data->client = clp; | 3403 | data->client = clp; |