Subject: Re: lockmgr/lockinit and LK_SPIN - panic caused by legal flags?
To: Gary Thorpe <gathorpe79@yahoo.com>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 09/09/2003 11:13:53
On Tuesday, September 9, 2003, at 12:18  AM, Gary Thorpe wrote:

> Ok, so basically, the only way the code won't panic is if both
> lockinit() and lockmgr() specify LK_SPIN with each invocation for the
> same lock. However, looking at the code it is possible to do this:
>
> lockinit(lkp, prio, wmesg, 0, LK_SPIN|LK_SLEEPFAIL);

Use spinlockinit().

         -- Jason R. Thorpe <thorpej@wasabisystems.com>