Date: Fri, 27 Apr 2007 11:49:41 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Hans Petter Selasky <hselasky@c2i.net> Subject: Re: msleep() on recursivly locked mutexes Message-ID: <200704271149.42325.jhb@freebsd.org> In-Reply-To: <200704262136.33196.hselasky@c2i.net> References: <200704262136.33196.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704271149.42325.jhb>