RE: System reboot hangs due to race against devices_kset->list triggered by SCSI FC workqueue

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

 



On Wed, 3 Mar 2010, Hugh Daschbach wrote:

> > Can't we just protect the list?  What is wanting to write to the list
> > while shutdown is happening?
> 
> Indeed, Alan suggested holding the kset spinlock while iterating the
> list.  Unfortunately, the device shutdown routines may sleep.  At least
> the SCSI sd_shutdown routine issues I/O to the device as part of
> flushing device caches.  I would guess other subsystems sleep as well.

What I meant was that you should hold the spinlock while finding and 
unlinking the last device on the list.  Clearly you shouldn't hold it 
while calling the device shutdown routine.

> I'll try klist.  That looks like a good mediator between traversal and
> removal.

Yes, it removes a lot of difficulties.

Alan Stern

--
To unsubscribe from this list: 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