From: Li Feng Date: Wed, 13 Mar 2024 12:38:09 +0000 (+0800) Subject: nvme-tcp: Export the nvme_tcp_wq to sysfs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ec58afb49e90d6fd468b0e21d2de324dff1a711c;p=people%2Faperard%2Flinux.git nvme-tcp: Export the nvme_tcp_wq to sysfs Make the workqueue userspace visible for easy viewing and configuration. Signed-off-by: Li Feng Reviewed-by: Sagi Grimberg Signed-off-by: Keith Busch --- 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;