Commit 9cc6aa54 authored by Brian King's avatar Brian King Committed by James Bottomley

[PATCH] ipr: Dead adapter I/O hang fix

The following patch fixes a hang in i/o that could occur if an
adapter was ever declared "dead" by the ipr driver due to repeated
failed attempts to revive the card. The patch now allows ipr to fail
new commands when in this state rather than endlessly return
SCSI_MLQUEUE_HOST_BUSY.
Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 7fdca3a8
......@@ -3862,7 +3862,7 @@ static int ipr_queuecommand(struct scsi_cmnd *scsi_cmd,
* We have told the host to stop giving us new requests, but
* ERP ops don't count. FIXME
*/
if (unlikely(!ioa_cfg->allow_cmds))
if (unlikely(!ioa_cfg->allow_cmds && !ioa_cfg->ioa_is_dead))
return SCSI_MLQUEUE_HOST_BUSY;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment