Port-i386 archive

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

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)




To: Thor Lancelot Simon <tls%panix.com@localhost>

Subject: Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>

Date: Thu, 19 Jan 2012 19:41:07 +0100


On Thu, Jan 19, 2012 at 12:19:32PM -0500, Thor Lancelot Simon wrote:
> On Wed, Jan 18, 2012 at 08:59:47PM -0800, Greg A. Woods wrote:
> > 
> > So if I understand correctly these calls from other subsystems are not
> > in an interrupt context and if I remember correctly tsleep() should be
> > fine in any normal driver ioctl() function (for a non-MPSAFE driver, if
> > indeed its ioctl() function was in the device switch table), but clearly
> > grabbing the KERNEL_LOCK() is the wrong thing to do for this case, at
> > least without releasing it properly before the tsleep() call.
> 
> I don't know whether you can, or can't, sleep holding the KERNEL_LOCK().

You can. tsleep() (and other sleeping primitives) will release/reaquire
it as needed.

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


References:

ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system
From: Greg A. Woods

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system
From: Thor Lancelot Simon

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)
From: Greg A. Woods

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)
From: Greg A. Woods

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)
From: Thor Lancelot Simon

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)
From: Greg A. Woods

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)
From: Thor Lancelot Simon




Prev by Date: Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

Next by Date: re: CVS commit: src/sys/arch/i386/i386

Previous by Thread: Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

Next by Thread: Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index