On Tue, 13 Sep 2005, Christoph Hellwig wrote: > > Tell me what you think of this patch. I'm not sure whether that > > condition, host_busy == host_failed, is correct for the call to > > wait_event_interruptible. > > I don't think we even need the waitque, a wake_up_process can replace > it when there's only a single process waiting on it ever. Similarly > we don't need eh_alive - EH must be alive after scsi_add_host returned, > and no command may be in flight before that. You're right about the wait_queue; I'll take it out. The reason for adding eh_alive was to prevent scsi_eh_scmd_add from calling scsi_eh_wakeup after the error handler thread had exited. The test that used to be there, shost->eh_wait == NULL, no longer applies. On the other hand, since we're no longer checking for signals maybe this test isn't needed at all. The error handler thread won't exit until the last reference to the host is gone. Alan Stern - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html