summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorDan Melnic <dmm@fb.com>2017-09-18 23:08:51 +0300
committerJens Axboe <axboe@kernel.dk>2018-05-22 20:47:34 +0300
commit2189c97cdbed630d5971ab22f05dc998774e354e (patch)
treee19f4d926c27667b031c3c02a55474a70188717c /drivers/block
parentb4f6f38d9f85b6209ddaf81886b687da150dfd7b (diff)
downloadlinux-2189c97cdbed630d5971ab22f05dc998774e354e.tar.xz
block/ndb: add WQ_UNBOUND to the knbd-recv workqueue
Add WQ_UNBOUND to the knbd-recv workqueue so we're not bound to a single CPU that is selected at device creation time. Signed-off-by: Dan Melnic <dmm@fb.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/nbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index abc0a815354f..1147e4680c80 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -2106,7 +2106,8 @@ static int __init nbd_init(void)
if (nbds_max > 1UL << (MINORBITS - part_shift))
return -EINVAL;
recv_workqueue = alloc_workqueue("knbd-recv",
- WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
+ WQ_MEM_RECLAIM | WQ_HIGHPRI |
+ WQ_UNBOUND, 0);
if (!recv_workqueue)
return -ENOMEM;