Re: msleep() on recursivly locked mutexes
- From: John Baldwin <jhb@xxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 11:49:41 -0400
On Thursday 26 April 2007 03:36:33 pm Hans Petter Selasky wrote:
Are there any comments on integrating this functionality into msleep(), and
adding mtx_drop_recurse() and mtx_pickup_recurse() to the FreeBSD kernel?
Nope. Fix the code to not recurse instead, or to know it has a recursed mutex
and make sure it doesn't call mtx_sleep() or cv_wait() with a recursed lock.
It's not that hard to do. The rest of the kernel manages that restriction
fine.
--
John Baldwin
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- msleep() on recursivly locked mutexes
- From: Hans Petter Selasky
- msleep() on recursivly locked mutexes
- Prev by Date: Re: msleep() on recursivly locked mutexes
- Next by Date: Re: Usage of kern_* functions in kernel
- Previous by thread: Re: msleep() on recursivly locked mutexes
- Next by thread: Re: Re: msleep() on recursivly locked mutexes
- Index(es):