Skip to contentSkip to conversation

nvme: Make CMB module parameter read-only

PATCH Superseded Jon Derrick 1 participant 1 message May 2, 2016 NVMe

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme: Make CMB module parameter read-only

This patch changes the use_cmb_sqes module parameter to read-only. This parameter allows the driver to place IO submission queues within the Controller Memory Buffer. Memory allocated for queues aren't dynamically reallocated between resets. For this reason, allowing the use_cmb_sqes module parameter to be written may be confusing because it should not be allowed.

Signed-off-by Jon Derrick <jonathan.derrick at intel.com>
---
 drivers/nvme/host/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/pci.c +1 -1
index 4fd733f..83de5569 100644
@@ -61,7 +61,7 @@ static int use_threaded_interrupts;
 module_param(use_threaded_interrupts, int, 0);
 
 static bool use_cmb_sqes = true;
-module_param(use_cmb_sqes, bool, 0644);
+module_param(use_cmb_sqes, bool, 0444);
 MODULE_PARM_DESC(use_cmb_sqes, "use controller's memory buffer for I/O SQes");
 
 static struct workqueue_struct *nvme_workq;
Signature · 1 line
1.8.3.1