Skip to contentSkip to conversation

ipr only tcq cancel all

PATCH New Brian King 1 participant 1 message Jun 9, 2004

Subsystems (2)
lore
Share & tools
lore

Brian King

author maintainer
#0 lore raw

PATCH 2/3 ipr only tcq cancel all

Signature · 4 lines
-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center

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.

---

 linux-2.6.7-rc2-bjking1/drivers/scsi/ipr.c |    5 +++++
 1 files changed, 5 insertions(+)
drivers/scsi/ipr.c renamed from drivers/scsi/ipr.c~ipr_only_tcq_cancel_all +5 -0
diff -puN drivers/scsi/ipr.c~ipr_only_tcq_cancel_all drivers/scsi/ipr.c
@@ -3535,6 +3535,11 @@ static void ipr_erp_cancel_all(struct ip
 
 	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;

_