Skip to contentSkip to conversation

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

PATCH New Dan Melnic 1 participant 1 message Sep 18, 2017

Subsystems (2)
lore
Share & tools
lore

Dan Melnic

author
#0 lore raw

PATCH v3 1/1 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.

---
 drivers/block/nbd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/block/nbd.c +2 -1
index 2aa87cb..f5d8c9a 100644
@@ -2080,7 +2080,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;
 
Signature · 1 line
2.9.5