tech-kern archive

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

Re: ncr53c9x fallout from asserting kernel lock in scsipi_base

On Sat, Mar 10, 2012 at 03:22:43AM +0900, Izumi Tsutsui wrote:
> > Since attach is usually called when the system is cold, there are no
> > other CPUs running so the system is effectively in KERNEL_LOCK().
> > 
> > Rather than fix the driver, maybe init_main should take out KERNEL_LOCK()
> > until it exits cold state.  
> What about hot-plug?  (we have esp at pcmcia)

While it's not a big problem to not have KERNEL_LOCK() while cold
(execpt for DIAGNOSTIC), I really hope autoconf runs under KERNEL_LOCK()
for hot-plug devices. Otherwise bad things can happen ...

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index