Re: msleep() on recursivly locked mutexes
- From: "M. Warner Losh" <imp@xxxxxxxxxx>
- Date: Thu, 26 Apr 2007 15:47:13 -0600 (MDT)
In message: <200704262136.33196.hselasky@xxxxxxx>
Hans Petter Selasky <hselasky@xxxxxxx> writes:
: Are there any comments on integrating this functionality into msleep(), and
: adding mtx_drop_recurse() and mtx_pickup_recurse() to the FreeBSD kernel?
This is generally a bad idea. We allow it for Giant because it has to
be acquired everywhere and we have to drop it in some extremely ugly
places. To enshrine this behavior for all mutexes strikes me as ill
advised. Adding additional hacks to recursive mutexes seems wrong to
my way of thinking.
Warner
_______________________________________________
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: msleep() on recursivly locked mutexes
- Previous by thread: Re: msleep() on recursivly locked mutexes
- Next by thread: Re: msleep() on recursivly locked mutexes
- Index(es):