Commit 4b1b3667 authored by Evgeniy Polyakov's avatar Evgeniy Polyakov Committed by David S. Miller

connector: convert to single-threaded workqueue

From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>

We don't need one cqueue thread for each CPU.  cqueue is used for
receiving userspace datagrams, which are very rare and thus will
happily live with a single queue.
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dbee0d3f
...@@ -146,7 +146,7 @@ struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *nls) ...@@ -146,7 +146,7 @@ struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *nls)
dev->nls = nls; dev->nls = nls;
dev->cn_queue = create_workqueue(dev->name); dev->cn_queue = create_singlethread_workqueue(dev->name);
if (!dev->cn_queue) { if (!dev->cn_queue) {
kfree(dev); kfree(dev);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment