Date: Thu, 26 Apr 2007 15:47:13 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: hselasky@c2i.net Cc: freebsd-hackers@freebsd.org Subject: Re: msleep() on recursivly locked mutexes Message-ID: <20070426.154713.-135506433.imp@bsdimp.com> In-Reply-To: <200704262136.33196.hselasky@c2i.net> References: <200704262136.33196.hselasky@c2i.net>
index | next in thread | previous in thread | raw e-mail
In message: <200704262136.33196.hselasky@c2i.net>
Hans Petter Selasky <hselasky@c2i.net> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070426.154713.-135506433.imp>
