Commit 4e54702f authored by James Bottomley's avatar James Bottomley

SCSI: Add noretry check to the error handler path

This still doesn't give us complete fast fail on
the eh path because we still get delayed to recover
the transport.
parent 8763960f
......@@ -1543,6 +1543,7 @@ static void scsi_eh_flush_done_q(struct list_head *done_q)
scmd = list_entry(lh, struct scsi_cmnd, eh_entry);
list_del_init(lh);
if (scsi_device_online(scmd->device) &&
!blk_noretry_request(scmd->request) &&
(++scmd->retries < scmd->allowed)) {
SCSI_LOG_ERROR_RECOVERY(3, printk("%s: flush"
" retry cmd: %p\n",
......
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