diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-01-23 13:19:17 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-01-24 18:46:49 -0500 |
commit | 127b21b89f9d8ba0dc23e47b8c35d8a0bac9d6fc (patch) | |
tree | f2b0086e364da03f476e6b9f5f0af0c0b7a10f3f /net/sunrpc | |
parent | 40dd4b7aee1a8c3b8dac7b67ba710692d7691b77 (diff) |
SUNRPC: Adjust rpciod workqueue parameters
Increase the concurrency level for rpciod threads to allow for allocations
etc that happen in the RPCSEC_GSS layer. Also note that the NFSv4 byte range
locks may now need to allocate memory from inside rpciod.
Add the WQ_HIGHPRI flag to improve latency guarantees while we're at it.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index d20f2329eea3..4f65ec28d2b4 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
@@ -1069,7 +1069,8 @@ static int rpciod_start(void) | |||
1069 | * Create the rpciod thread and wait for it to start. | 1069 | * Create the rpciod thread and wait for it to start. |
1070 | */ | 1070 | */ |
1071 | dprintk("RPC: creating workqueue rpciod\n"); | 1071 | dprintk("RPC: creating workqueue rpciod\n"); |
1072 | wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 1); | 1072 | /* Note: highpri because network receive is latency sensitive */ |
1073 | wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM | WQ_HIGHPRI, 0); | ||
1073 | rpciod_workqueue = wq; | 1074 | rpciod_workqueue = wq; |
1074 | return rpciod_workqueue != NULL; | 1075 | return rpciod_workqueue != NULL; |
1075 | } | 1076 | } |