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

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

 



Rolf Eike Beer wrote:
> 
> Ok, we looked a bit closer on all this. http://lwn.net/Articles/65178/ tells 
> that ktread_stop() will not send a signal, so the down_interruptible() will 
> never return on kthread_stop(). But calling up() directly before 
> kthread_stop() adds a race condition: if reschedule happens right after the 
> up() we've won nothing and it will hang again.

This problem shows up in other ways as well.  With hot-unpluggable 
hosts, the call that does the last 'put' on the last device will hang 
waiting for the eh thread to terminate.  See

http://bugzilla.kernel.org/show_bug.cgi?id=5237

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