mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
Disable accepting initiator mode commands if initiator mode not enabled
for 23xx- chips as well as suggested by ido benda <idombd@gmail.com>. This is extension of r3261 to qla2x00_queuecommand(). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3819 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -461,6 +461,16 @@ qla2x00_queuecommand_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)
|
||||
goto qc_host_busy;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCSI_QLA2XXX_TARGET
|
||||
if (unlikely(!qla_ini_mode_enabled(ha))) {
|
||||
DEBUG2_3_11(printk("%s(%ld): Initiator command in the initiator "
|
||||
"disabled mode\n", __func__, ha->host_no));
|
||||
cmd->result = DID_NO_CONNECT << 16;
|
||||
goto qc_fail_command;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
spin_unlock_irq(ha->host->host_lock);
|
||||
|
||||
sp = qla2x00_get_new_sp(ha, fcport, cmd, done);
|
||||
|
||||
Reference in New Issue
Block a user