Skip to content

Commit 2189c97

Browse files
dmm-fbaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b4f6f38 commit 2189c97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/block/nbd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,8 @@ static int __init nbd_init(void)
21062106
if (nbds_max > 1UL << (MINORBITS - part_shift))
21072107
return -EINVAL;
21082108
recv_workqueue = alloc_workqueue("knbd-recv",
2109-
WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
2109+
WQ_MEM_RECLAIM | WQ_HIGHPRI |
2110+
WQ_UNBOUND, 0);
21102111
if (!recv_workqueue)
21112112
return -ENOMEM;
21122113

0 commit comments

Comments
 (0)