summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorLi Feng <fengli@smartx.com>2024-03-13 13:38:09 +0100
committerKeith Busch <kbusch@kernel.org>2024-03-18 21:41:11 +0100
commitec58afb49e90d6fd468b0e21d2de324dff1a711c (patch)
tree377c2cb0f5a7d4a8da4ddc09b2b2658fb1e89d50 /drivers/nvme
parentdrivers/nvme: Add quirks for device 126f:2262 (diff)
downloadlinux-ec58afb49e90d6fd468b0e21d2de324dff1a711c.tar.xz
linux-ec58afb49e90d6fd468b0e21d2de324dff1a711c.zip
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 a6d596e05602..2ec1186db0a3 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;