public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't retry SG_IO (REQ_BLOCK_PC) commands.
@ 2003-11-20 16:55 Patrick Mansfield
  2003-11-20 18:15 ` Mike Anderson
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Mansfield @ 2003-11-20 16:55 UTC (permalink / raw)
  To: Pat LaVarre; +Cc: dmitrik, linux-scsi, James Bottomley, Jens Axboe

On Thu, Nov 20, 2003 at 08:57:15AM -0700, Pat LaVarre wrote:

> This also could matter.  In our kernel code who wrongly thinks we gave
> permission to retry SG_IO?  This evidence echoes someone else's - may

sg.c looks OK, Dmitri must be using /dev/sdN. We need this fix, patch
is for the current scsi-bugfixes-2.6:

Don't retry SG_IO (REQ_BLOCK_PC) commands.

===== drivers/scsi/sd.c 1.138 vs edited =====
--- 1.138/drivers/scsi/sd.c	Fri Oct 17 16:14:06 2003
+++ edited/drivers/scsi/sd.c	Thu Nov 20 08:18:34 2003
@@ -347,9 +347,9 @@
 	 */
 	SCpnt->transfersize = sdp->sector_size;
 	SCpnt->underflow = this_count << 9;
+	SCpnt->allowed = SD_MAX_RETRIES;
 
 queue:
-	SCpnt->allowed = SD_MAX_RETRIES;
 	SCpnt->timeout_per_command = timeout;
 
 	/*



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-11-22 23:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-20 16:55 [PATCH] Don't retry SG_IO (REQ_BLOCK_PC) commands Patrick Mansfield
2003-11-20 18:15 ` Mike Anderson
2003-11-20 19:16   ` Jens Axboe
2003-11-20 21:51     ` Patrick Mansfield
2003-11-21 10:17       ` Jens Axboe
2003-11-21 12:48         ` James Bottomley
2003-11-21 14:12           ` James Bottomley
2003-11-22 23:00             ` Andries Brouwer
2003-11-21 16:26           ` Patrick Mansfield
2003-11-21 18:23             ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox