mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
scst: Display default SCST module parameters values
The 'modinfo scst' command lack of the information about default parameters values. Hence this patch.
This commit is contained in:
@@ -133,7 +133,6 @@ static struct mutex scst_cmd_threads_mutex;
|
||||
/* protected by scst_cmd_threads_mutex */
|
||||
static struct list_head scst_cmd_threads_list;
|
||||
|
||||
int scst_threads;
|
||||
static struct task_struct *scst_init_cmd_thread;
|
||||
static struct task_struct *scst_mgmt_thread;
|
||||
static struct task_struct *scst_mgmt_cmd_thread;
|
||||
@@ -156,34 +155,34 @@ static int scst_virt_dev_last_id; /* protected by scst_mutex */
|
||||
|
||||
cpumask_t default_cpu_mask;
|
||||
|
||||
static unsigned int scst_max_cmd_mem;
|
||||
unsigned int scst_max_dev_cmd_mem;
|
||||
bool scst_forcibly_close_sessions;
|
||||
bool scst_auto_cm_assignment = true;
|
||||
|
||||
spinlock_t scst_measure_latency_lock;
|
||||
atomic_t scst_measure_latency;
|
||||
|
||||
int scst_threads;
|
||||
module_param_named(scst_threads, scst_threads, int, S_IRUGO);
|
||||
MODULE_PARM_DESC(scst_threads, "SCSI target threads count");
|
||||
|
||||
static unsigned int scst_max_cmd_mem;
|
||||
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");
|
||||
|
||||
unsigned int scst_max_dev_cmd_mem;
|
||||
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");
|
||||
|
||||
bool scst_forcibly_close_sessions;
|
||||
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");
|
||||
" when an ACG is deleted via sysfs instead of returning -EBUSY. (default: false)");
|
||||
|
||||
bool scst_auto_cm_assignment = true;
|
||||
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");
|
||||
MODULE_PARM_DESC(auto_cm_assignment, "Enables the copy managers auto registration. (default: true)");
|
||||
|
||||
struct scst_dev_type scst_null_devtype = {
|
||||
.name = "none",
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ static LIST_HEAD(scst_dev_group_list);
|
||||
static bool alua_invariant_check;
|
||||
module_param(alua_invariant_check, bool, 0644);
|
||||
MODULE_PARM_DESC(alua_invariant_check,
|
||||
"Enables a run-time ALUA state invariant check.");
|
||||
"Enables a run-time ALUA state invariant check. (default: false)");
|
||||
|
||||
/* Global SCST ALUA lock/unlock functions (scst_dg_mutex) */
|
||||
void scst_alua_lock(void)
|
||||
|
||||
Reference in New Issue
Block a user