[SCSI] qla2xxx: Optionally disable target reset.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
86fbee86e9
commit
f4c496c1fb
2 changed files with 8 additions and 1 deletions
|
@ -96,6 +96,7 @@ extern int ql2xdontresethba;
|
||||||
extern int ql2xasynctmfenable;
|
extern int ql2xasynctmfenable;
|
||||||
extern int ql2xenabledif;
|
extern int ql2xenabledif;
|
||||||
extern int ql2xenablehba_err_chk;
|
extern int ql2xenablehba_err_chk;
|
||||||
|
extern int ql2xtargetreset;
|
||||||
|
|
||||||
extern int qla2x00_loop_reset(scsi_qla_host_t *);
|
extern int qla2x00_loop_reset(scsi_qla_host_t *);
|
||||||
extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);
|
extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);
|
||||||
|
|
|
@ -154,6 +154,12 @@ MODULE_PARM_DESC(ql2xdontresethba,
|
||||||
" 0 (Default) -- Reset on failure.\n"
|
" 0 (Default) -- Reset on failure.\n"
|
||||||
" 1 -- Do not reset on failure.\n");
|
" 1 -- Do not reset on failure.\n");
|
||||||
|
|
||||||
|
int ql2xtargetreset = 1;
|
||||||
|
module_param(ql2xtargetreset, int, S_IRUGO|S_IRUSR);
|
||||||
|
MODULE_PARM_DESC(ql2xtargetreset,
|
||||||
|
"Enable target reset."
|
||||||
|
"Default is 1 - use hw defaults.");
|
||||||
|
|
||||||
|
|
||||||
int ql2xasynctmfenable;
|
int ql2xasynctmfenable;
|
||||||
module_param(ql2xasynctmfenable, int, S_IRUGO|S_IRUSR);
|
module_param(ql2xasynctmfenable, int, S_IRUGO|S_IRUSR);
|
||||||
|
@ -1193,7 +1199,7 @@ qla2x00_loop_reset(scsi_qla_host_t *vha)
|
||||||
struct fc_port *fcport;
|
struct fc_port *fcport;
|
||||||
struct qla_hw_data *ha = vha->hw;
|
struct qla_hw_data *ha = vha->hw;
|
||||||
|
|
||||||
if (ha->flags.enable_target_reset) {
|
if (ql2xtargetreset == 1 && ha->flags.enable_target_reset) {
|
||||||
list_for_each_entry(fcport, &vha->vp_fcports, list) {
|
list_for_each_entry(fcport, &vha->vp_fcports, list) {
|
||||||
if (fcport->port_type != FCT_TARGET)
|
if (fcport->port_type != FCT_TARGET)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue