projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
849b286
)
SUNRPC: Limit the rpciod workqueue concurrency
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 29 Sep 2012 00:24:16 +0000
(20:24 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 29 Sep 2012 00:24:16 +0000
(20:24 -0400)
We shouldn't need more than 1 worker thread per cpu, since rpciod
is designed to run without sleeping in most cases.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/sched.c
b/net/sunrpc/sched.c
index 128494ec9a6490e29de2ce52a0ae7b2a2a0368e3..6357fcb00c7e2046f8acb901d7005429d23158cd 100644
(file)
--- a/
net/sunrpc/sched.c
+++ b/
net/sunrpc/sched.c
@@
-1022,7
+1022,7
@@
static int rpciod_start(void)
* Create the rpciod thread and wait for it to start.
*/
dprintk("RPC: creating workqueue rpciod\n");
- wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM,
0
);
+ wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM,
1
);
rpciod_workqueue = wq;
return rpciod_workqueue != NULL;
}