public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] scsi_lib.c error handler patch
@ 2003-06-20 17:55 Peter Yao
  0 siblings, 0 replies; only message in thread
From: Peter Yao @ 2003-06-20 17:55 UTC (permalink / raw)
  To: linux-scsi

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

i found a bug in redhat 7.3's kernel source, which cause some failed 
commands cannot be passed to the scsi error handler thread. I searched 
this list hastily and did not find a fix. i don't know whether it is in 
the latest kernel source, just a remind. :-)

Peter Yao

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 533 bytes --]

--- drivers/scsi/scsi_lib.c	Thu Apr 18 10:50:34 2002
+++ /tmp/scsi_lib.c	Fri Jun 20 17:34:10 2003
@@ -423,6 +423,11 @@
 		 * the front of the queue, and goose the queue again.
 		 */
 		scsi_queue_next_request(q, SCpnt);
+		/* Don't forget to wake up error handler */
+                if (SCpnt->host->in_recovery && !SCpnt->host->eh_active &&
+                        atomic_read(&SCpnt->host->host_busy) == SCpnt->host->host_failed) {
+                        up(SCpnt->host->eh_wait);
+                }
 		return SCpnt;
 	}
 	/*

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

only message in thread, other threads:[~2003-06-20  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20 17:55 [patch] scsi_lib.c error handler patch Peter Yao

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