]> xenbits.xensource.com Git - people/aperard/linux.git/commitdiff
nvme-tcp: Export the nvme_tcp_wq to sysfs
authorLi Feng <fengli@smartx.com>
Wed, 13 Mar 2024 12:38:09 +0000 (20:38 +0800)
committerKeith Busch <kbusch@kernel.org>
Mon, 18 Mar 2024 20:41:11 +0000 (13:41 -0700)
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>
drivers/nvme/host/tcp.c

index a6d596e05602117ff9c38fbcb86645bda4016c59..2ec1186db0a32416bbe7e3ab80bc4d270ab338d6 100644 (file)
@@ -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;