aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorSantosh Vernekar <santosh.vernekar@qlogic.com>2010-03-19 19:59:20 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-03-27 15:11:37 -0400
commitd6136f3f749cf68c3295c883cea612afd9919100 (patch)
tree8f1c33bc7a2d17a87de7f717fbb15f9b968b6144 /drivers/scsi
parent6377a7ae1ab82859edccdbc8eaea63782efb134d (diff)
[SCSI] qla2xxx: Prevent sending mbx commands from sysfs during isp reset.
The fix prevents application path from sending get-firmware-state mbx command during as isp reset. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 90d1e062ec4f..35a325266afa 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1274,7 +1274,11 @@ qla2x00_fw_state_show(struct device *dev, struct device_attribute *attr,
1274 int rval = QLA_FUNCTION_FAILED; 1274 int rval = QLA_FUNCTION_FAILED;
1275 uint16_t state[5]; 1275 uint16_t state[5];
1276 1276
1277 if (!vha->hw->flags.eeh_busy) 1277 if (test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) ||
1278 test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags))
1279 DEBUG2_3_11(printk("%s(%ld): isp reset in progress.\n",
1280 __func__, vha->host_no));
1281 else if (!vha->hw->flags.eeh_busy)
1278 rval = qla2x00_get_firmware_state(vha, state); 1282 rval = qla2x00_get_firmware_state(vha, state);
1279 if (rval != QLA_SUCCESS) 1283 if (rval != QLA_SUCCESS)
1280 memset(state, -1, sizeof(state)); 1284 memset(state, -1, sizeof(state));