connector: convert to single-threaded workqueue
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Mon, 24 Mar 2008 04:51:12 +0000 (21:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2008 04:51:12 +0000 (21:51 -0700)
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>
drivers/connector/cn_queue.c

index 5732ca3259f982be418950077e5735e07eadbde7..b6fe7e7a2c2fd71e6818a850fd6b8adbfd613bf5 100644 (file)
@@ -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;