Skip to content

Commit 34cfb09

Browse files
Sagi Grimbergkeithbusch
authored andcommitted
nvmet: make nvmet_wq unbound
When deleting many controllers one-by-one, it takes a very long time as these work elements may serialize as they are scheduled on the executing cpu instead of spreading. In general nvmet_wq can definitely be used for long standing work elements so its better to make it unbound regardless. Signed-off-by: Sagi Grimberg <sagi.grimberg@vastdata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 4b9a89b commit 34cfb09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/nvme/target/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,8 @@ static int __init nvmet_init(void)
16861686
if (!buffered_io_wq)
16871687
goto out_free_zbd_work_queue;
16881688

1689-
nvmet_wq = alloc_workqueue("nvmet-wq", WQ_MEM_RECLAIM, 0);
1689+
nvmet_wq = alloc_workqueue("nvmet-wq",
1690+
WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
16901691
if (!nvmet_wq)
16911692
goto out_free_buffered_work_queue;
16921693

0 commit comments

Comments
 (0)