Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd36e726 authored by Dan Melnic's avatar Dan Melnic Committed by Greg Kroah-Hartman
Browse files

block/ndb: add WQ_UNBOUND to the knbd-recv workqueue



[ Upstream commit 2189c97c ]

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: default avatarDan Melnic <dmm@fb.com>
Reviewed-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 498ade7d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2217,7 +2217,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;