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

Commit 63d80c49 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by James Bottomley
Browse files

[SCSI] dpt_i2o: return SCSI_MLQUEUE_HOST_BUSY when in reset



When the HBA is in reset we should be returning 'busy' and not
rely on the obscure 'last_reset' feature.

[jejb: checkpatch fixes]
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 1f8c88c3
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -448,11 +448,8 @@ static int adpt_queue_lck(struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd
	}
	}


	rmb();
	rmb();
	if ((pHba->state) & DPTI_STATE_RESET) {
	if ((pHba->state) & DPTI_STATE_RESET)
		pHba->host->last_reset = jiffies;
		return SCSI_MLQUEUE_HOST_BUSY;
		pHba->host->resetting = 1;
		return 1;
	}


	// TODO if the cmd->device if offline then I may need to issue a bus rescan
	// TODO if the cmd->device if offline then I may need to issue a bus rescan
	// followed by a get_lct to see if the device is there anymore
	// followed by a get_lct to see if the device is there anymore