Skip to content

Commit 4b1b366

Browse files
Evgeniy Polyakovdavem330
authored andcommitted
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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dbee0d3 commit 4b1b366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/connector/cn_queue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *nls)
146146

147147
dev->nls = nls;
148148

149-
dev->cn_queue = create_workqueue(dev->name);
149+
dev->cn_queue = create_singlethread_workqueue(dev->name);
150150
if (!dev->cn_queue) {
151151
kfree(dev);
152152
return NULL;

0 commit comments

Comments
 (0)