Subject: Re: multiple copyout()s or a malloc? To: Simon Burge <simonb@netbsd.org> From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us> List: tech-kern Date: 06/01/2000 08:20:05
simple_lock() is a spinlock, not to be held across a tsleep() (and
both malloc() and copyout() may sleep).
If you want a lock here (and I really don't think it's necessary), you
want to use a lockmgr()-style sleep lock.
- Bill