nvme-pci: make use_threaded_interrupts mod-param read-only
PATCH 1/1 nvme-pci: make use_threaded_interrupts mod-param read-only
When I execute "insmod nvme.ko use_threaded_interrupts=1", I find it difficult to determine whether it is successful or not, So I want to add read-only parameter to '/sys/module/nvme/parameters/use_threaded_interrupts', When insmoded successfully.
# cat /sys/module/nvme/parameters/use_threaded_interrupts
# 1Signed-off-by Xin Hao <[email protected]>
--- drivers/nvme/host/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/pci.c +1 -1
@@ -44,7 +44,7 @@#define NVME_MAX_SEGS 127static int use_threaded_interrupts; -module_param (use_threaded_interrupts, int,0 ); +module_param (use_threaded_interrupts, int,0444 );static bool use_cmb_sqes = true;module_param (use_cmb_sqes, bool,0444 );
--
2.31.0
Thanks,
applied to nvme-5.18.