Commit 323c7f1f authored by Brian King's avatar Brian King Committed by James Bottomley

[PATCH] ipr only tcq cancel all

Some SCSI-IDE cdrom drives take up to 15 seconds to respond following
an abort being issued to them. This patch changes ipr to only send
a cancel all to a device as part of request sense processing when
the device is running tagged command queueing.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent d7f2d29d
......@@ -3535,6 +3535,11 @@ static void ipr_erp_cancel_all(struct ipr_cmnd *ipr_cmd)
ipr_reinit_ipr_cmnd_for_erp(ipr_cmd);
if (!res->tcq_active) {
ipr_erp_request_sense(ipr_cmd);
return;
}
cmd_pkt = &ipr_cmd->ioarcb.cmd_pkt;
cmd_pkt->request_type = IPR_RQTYPE_IOACMD;
cmd_pkt->cdb[0] = IPR_CANCEL_ALL_REQUESTS;
......
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