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>
This commit is contained in:
parent
e89086c43f
commit
ec58afb49e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user