Skip to content

Commit dd36e72

Browse files
dmm-fbgregkh
authored andcommitted
block/ndb: add WQ_UNBOUND to the knbd-recv workqueue
[ Upstream commit 2189c97 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 498ade7 commit dd36e72

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
@@ -2217,7 +2217,8 @@ static int __init nbd_init(void)
22172217
if (nbds_max > 1UL << (MINORBITS - part_shift))
22182218
return -EINVAL;
22192219
recv_workqueue = alloc_workqueue("knbd-recv",
2220-
WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
2220+
WQ_MEM_RECLAIM | WQ_HIGHPRI |
2221+
WQ_UNBOUND, 0);
22212222
if (!recv_workqueue)
22222223
return -ENOMEM;
22232224

0 commit comments

Comments
 (0)