diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-01-29 18:49:44 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-02-26 00:50:12 +0100 |
commit | 0adc87940618648b3dcccc819c20068bd6b4ec93 (patch) | |
tree | 51d9bad823a02d5a1f89468a3d8162edc808ff56 /net/sunrpc/xprt.c | |
parent | NFSv4.2/copyoffload: Convert GFP_NOFS to GFP_KERNEL (diff) | |
download | linux-0adc87940618648b3dcccc819c20068bd6b4ec93.tar.xz linux-0adc87940618648b3dcccc819c20068bd6b4ec93.zip |
SUNRPC: Convert GFP_NOFS to GFP_KERNEL
The sections which should not re-enter the filesystem are already
protected with memalloc_nofs_save/restore calls, so it is better to use
GFP_KERNEL in these calls to allow better performance for synchronous
RPC calls.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to '')
-rw-r--r-- | net/sunrpc/xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index a02de2bddb28..9f0025e0742c 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -1692,7 +1692,7 @@ static struct rpc_rqst *xprt_dynamic_alloc_slot(struct rpc_xprt *xprt) goto out; ++xprt->num_reqs; spin_unlock(&xprt->reserve_lock); - req = kzalloc(sizeof(struct rpc_rqst), GFP_NOFS); + req = kzalloc(sizeof(struct rpc_rqst), GFP_KERNEL); spin_lock(&xprt->reserve_lock); if (req != NULL) goto out; |