aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorLi Feng <fengli@smartx.com>2024-03-13 20:38:09 +0800
committerKeith Busch <kbusch@kernel.org>2024-03-18 13:41:11 -0700
commitec58afb49e90d6fd468b0e21d2de324dff1a711c (patch)
tree377c2cb0f5a7d4a8da4ddc09b2b2658fb1e89d50 /drivers/nvme
parente89086c43f0500bc7c4ce225495b73b8ce234c1f (diff)
downloadlinux-ec58afb49e90d6fd468b0e21d2de324dff1a711c.tar.gz
nvme-tcp: Export the nvme_tcp_wq to sysfs
Make the workqueue userspace visible for easy viewing and configuration. Signed-off-by: Li Feng <fengli@smartx.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index a6d596e056021..2ec1186db0a32 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -2800,7 +2800,7 @@ static int __init nvme_tcp_init_module(void)
BUILD_BUG_ON(sizeof(struct nvme_tcp_term_pdu) != 24);
nvme_tcp_wq = alloc_workqueue("nvme_tcp_wq",
- WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
+ WQ_MEM_RECLAIM | WQ_HIGHPRI | WQ_SYSFS, 0);
if (!nvme_tcp_wq)
return -ENOMEM;