Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept).
From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 04/08/04
- Previous message: Poul-Henning Kamp: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- In reply to: Poul-Henning Kamp: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- Next in thread: Robert Watson: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 8 Apr 2004 23:59:48 +0200 To: Poul-Henning Kamp <phk@phk.freebsd.dk>
On Thu, Apr 08, 2004 at 11:40:07PM +0200, Poul-Henning Kamp wrote:
+> >As was discussed, it will be helpful to have functions, that are able
+> >to acquire lock recursively, even if lock itself isn't recursable.
+>
+> Sounds evil to me...
Why? I don't think that better is to just use MTX_RECURSE if we don't need
it in 90% of cases. And sometimes it is really hard to pass information if
lock is held or not, just like for that rwatson's kqueue thing.
+> Does your patch also make witness aware of this ?
Nope, it is just a proof-of-concept and as jhb@ pointed out, we want
to keep our interface simple, so it probably will never reach the tree.
-- Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am!
- application/pgp-signature attachment: stored
- Previous message: Poul-Henning Kamp: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- In reply to: Poul-Henning Kamp: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- Next in thread: Robert Watson: "Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept)."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|