Re: [PATCH 1/2] fix EH thread teardown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux