* [PATCH] Make retries obey host_self_blocked flag #2
@ 2004-02-05 22:49 Brian King
0 siblings, 0 replies; only message in thread
From: Brian King @ 2004-02-05 22:49 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
Lets try this again, this time with the patch attached....
The following patch against 2.6.2 will prevent the midlayer from
issuing retries if host_self_blocked is set. This was raised as an
issue here:
http://marc.theaimsgroup.com/?l=linux-scsi&m=107357742430401&w=2
I'm trying to improve and extend scsi_block_requests, and this is
the first, and hopefully least controversial, step.
--
Brian King
eServer Storage I/O
IBM Linux Technology Center
[-- Attachment #2: patch-2.6.2-scsi_retries --]
[-- Type: text/plain, Size: 409 bytes --]
diff -Naur linux-2.6.2/drivers/scsi/scsi.c linux-2.6.2-block_req/drivers/scsi/scsi.c
--- linux-2.6.2/drivers/scsi/scsi.c Wed Feb 4 14:20:59 2004
+++ linux-2.6.2-block_req/drivers/scsi/scsi.c Thu Feb 5 14:21:19 2004
@@ -784,7 +784,7 @@
*/
memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer));
- return scsi_dispatch_cmd(cmd);
+ return scsi_queue_insert(cmd, SCSI_MLQUEUE_EH_RETRY);
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-05 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-05 22:49 [PATCH] Make retries obey host_self_blocked flag #2 Brian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox