mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-31 08:04:55 +00:00
[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: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
1f8c88c3b5
commit
63d80c49ba
@ -448,11 +448,8 @@ static int adpt_queue_lck(struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd
|
||||
}
|
||||
|
||||
rmb();
|
||||
if ((pHba->state) & DPTI_STATE_RESET) {
|
||||
pHba->host->last_reset = jiffies;
|
||||
pHba->host->resetting = 1;
|
||||
return 1;
|
||||
}
|
||||
if ((pHba->state) & DPTI_STATE_RESET)
|
||||
return SCSI_MLQUEUE_HOST_BUSY;
|
||||
|
||||
// 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user