#define DEF_NUM_THREADS 5
static int num_threads = DEF_NUM_THREADS;
-module_param_named(num_threads, num_threads, int, 0);
+module_param_named(num_threads, num_threads, int, S_IRUGO);
MODULE_PARM_DESC(num_threads, "vdisk threads count");
static int vdisk_attach(struct scst_device *dev);
static int scst_vdisk_ID;
-module_param_named(scst_vdisk_ID, scst_vdisk_ID, int, 0);
+module_param_named(scst_vdisk_ID, scst_vdisk_ID, int, S_IRUGO);
MODULE_PARM_DESC(scst_vdisk_ID, "SCST virtual disk subsystem ID");
module_param_named(scst_threads, scst_threads, int, 0);
MODULE_PARM_DESC(scst_threads, "SCSI target threads count");
-module_param_named(scst_max_cmd_mem, scst_max_cmd_mem, int, 0);
+module_param_named(scst_max_cmd_mem, scst_max_cmd_mem, int, S_IRUGO);
MODULE_PARM_DESC(scst_max_cmd_mem, "Maximum memory allowed to be consumed by "
"all SCSI commands of all devices at any given time in MB");
-module_param_named(scst_max_dev_cmd_mem, scst_max_dev_cmd_mem, int, 0);
+module_param_named(scst_max_dev_cmd_mem, scst_max_dev_cmd_mem, int, S_IRUGO);
MODULE_PARM_DESC(scst_max_dev_cmd_mem, "Maximum memory allowed to be consumed "
"by all SCSI commands of a device at any given time in MB");