public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch]scsi_error.c@2.4.22, device starved forever
@ 2003-08-26 14:43 Peter Yao
  0 siblings, 0 replies; only message in thread
From: Peter Yao @ 2003-08-26 14:43 UTC (permalink / raw)
  To: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 145 bytes --]

Hi,
When the error handler finish and call scsi_restart_operations, may 
forget to mark some devices starved. Patch atached.

Thanks,

Peter Yao

[-- Attachment #2: patch_2.4.22 --]
[-- Type: text/plain, Size: 452 bytes --]

--- linux-2.4.22/drivers/scsi/scsi_error.c	Thu Nov 28 23:53:14 2002
+++ /home/peter/scsi_error.c	Tue Aug 26 14:35:14 2003
@@ -1262,7 +1262,12 @@
 		    || (host->host_blocked)
 		    || (host->host_self_blocked)
 		    || (SDpnt->device_blocked)) {
-			break;
+			if (atomic_read(&SDpnt->device_busy) == 0) {
+				SDpnt->starved = 1;
+				host->some_device_starved = 1;
+				
+			}
+			continue;
 		}
 		q = &SDpnt->request_queue;
 		q->request_fn(q);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-26  6:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 14:43 [patch]scsi_error.c@2.4.22, device starved forever Peter Yao

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