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 Fri, Mar 09, 2012 at 02:49:43PM +0000, Julian Coleman wrote:
> Hi,
> 
> After the change in revision 1.156 of src/sys/dev/scsipi/scsipi_base.c to
> assert that the kernel lock is held in scsipi_lookup_periph(), my SBus-based
> sparc64 crashed with:
> 
>   panic: kernel diagnostic assertion "KERNEL_LOCKED_P()" failed: file 
> "/usr/src/sys/dev/scsipi/scsipi_base.c", line 221
> 
> The backtrace is:
> 
>   kern_assert
>   scsipi_lookup_periph
>   scsipi_async_event
>   ncr53c9x_update_xfer_mode
>   ncr53c9x_init
>   ncr53c9x_attach
> 
> The attached allows it to boot and run, but is it correct?

assuming ncr53c9x is MP-safe, it is correct.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index