Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] nvmet: make nvmet_wq visible in sysfs
@ 2024-10-31  2:27 Guixin Liu
  2024-10-31  6:23 ` Chaitanya Kulkarni
  0 siblings, 1 reply; 7+ messages in thread
From: Guixin Liu @ 2024-10-31  2:27 UTC (permalink / raw)
  To: hch, sagi, kch; +Cc: linux-nvme

In some complex scenarios, we deploy multiple tasks on a single machine
(hybrid deployment), such as:
  1. Docker containers for function computation (background processing).
  2. Docker containers for real-time tasks.
  3. Docker containers for monitoring, event handling, and management.
  4. An NVMe target server.
Each of these components is restricted to its own CPU cores to prevent
mutual interference and ensure strict isolation. Additionally, we make
the nvmet_wq visible in sysfs, allowing for tuning its attributes
through sysfs, such as cpumask.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
---
 drivers/nvme/target/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
index ed2424f8a396..15b25f464e77 100644
--- a/drivers/nvme/target/core.c
+++ b/drivers/nvme/target/core.c
@@ -1717,7 +1717,7 @@ static int __init nvmet_init(void)
 		goto out_free_zbd_work_queue;
 
 	nvmet_wq = alloc_workqueue("nvmet-wq",
-			WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
+			WQ_MEM_RECLAIM | WQ_UNBOUND | WQ_SYSFS, 0);
 	if (!nvmet_wq)
 		goto out_free_buffered_work_queue;
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-05 17:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31  2:27 [PATCH v2] nvmet: make nvmet_wq visible in sysfs Guixin Liu
2024-10-31  6:23 ` Chaitanya Kulkarni
2024-10-31  6:38   ` Guixin Liu
2024-10-31  6:50     ` Chaitanya Kulkarni
2024-10-31  6:57       ` hch
2024-10-31  7:00       ` Guixin Liu
2024-11-05 16:36         ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox