Skip to content

Commit

Permalink
connector: convert to single-threaded workqueue
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Evgeniy Polyakov authored and David S. Miller committed Mar 24, 2008
1 parent dbee0d3 commit 4b1b366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/connector/cn_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *nls)

dev->nls = nls;

dev->cn_queue = create_workqueue(dev->name);
dev->cn_queue = create_singlethread_workqueue(dev->name);
if (!dev->cn_queue) {
kfree(dev);
return NULL;
Expand Down

0 comments on commit 4b1b366

Please sign in to comment.