Skip to contentSkip to conversation

Make retries obey host_self_blocked flag #2

PATCH New Brian King 1 participant 1 message Feb 5, 2004 SCSI

lore
Share & tools
lore

Brian King

author
#0 lore raw

PATCH 1/1 Make retries obey host_self_blocked flag #2

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.

Signature · 3 lines
Brian King
eServer Storage I/O
IBM Linux Technology Center
drivers/scsi/scsi.c +1 -1
diff -Naur linux-2.6.2/drivers/scsi/scsi.c linux-2.6.2-block_req/drivers/scsi/scsi.c
@@ -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);
 }
 
 /*