scst_main: Use bool type for boolean module params

This patch doesn't change any functionality.
This commit is contained in:
Gleb Chesnokov
2022-06-20 16:08:18 +03:00
parent 4123e521cc
commit 19a03ed163
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -158,8 +158,8 @@ cpumask_t default_cpu_mask;
static unsigned int scst_max_cmd_mem;
unsigned int scst_max_dev_cmd_mem;
int scst_forcibly_close_sessions;
int scst_auto_cm_assignment = true;
bool scst_forcibly_close_sessions;
bool scst_auto_cm_assignment = true;
spinlock_t scst_measure_latency_lock;
atomic_t scst_measure_latency;
@@ -175,13 +175,13 @@ 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");
module_param_named(forcibly_close_sessions, scst_forcibly_close_sessions, int,
module_param_named(forcibly_close_sessions, scst_forcibly_close_sessions, bool,
S_IWUSR | S_IRUGO);
MODULE_PARM_DESC(forcibly_close_sessions,
"If enabled, close the sessions associated with an access control group (ACG)"
" when an ACG is deleted via sysfs instead of returning -EBUSY");
module_param_named(auto_cm_assignment, scst_auto_cm_assignment, int,
module_param_named(auto_cm_assignment, scst_auto_cm_assignment, bool,
S_IWUSR | S_IRUGO);
MODULE_PARM_DESC(auto_cm_assignment, "Enables the copy managers auto registration");
+2 -2
View File
@@ -152,8 +152,8 @@ extern int scst_threads;
extern unsigned int scst_max_dev_cmd_mem;
extern int scst_forcibly_close_sessions;
extern int scst_auto_cm_assignment;
extern bool scst_forcibly_close_sessions;
extern bool scst_auto_cm_assignment;
extern mempool_t *scst_mgmt_mempool;
extern mempool_t *scst_mgmt_stub_mempool;