Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6136f3f authored by Santosh Vernekar's avatar Santosh Vernekar Committed by James Bottomley
Browse files

[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: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 6377a7ae
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1274,7 +1274,11 @@ qla2x00_fw_state_show(struct device *dev, struct device_attribute *attr,
	int rval = QLA_FUNCTION_FAILED;
	uint16_t state[5];

	if (!vha->hw->flags.eeh_busy)
	if (test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) ||
		test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags))
		DEBUG2_3_11(printk("%s(%ld): isp reset in progress.\n",
			__func__, vha->host_no));
	else if (!vha->hw->flags.eeh_busy)
		rval = qla2x00_get_firmware_state(vha, state);
	if (rval != QLA_SUCCESS)
		memset(state, -1, sizeof(state));