Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 11:14:01 -0400
From:      "Ryan Stone" <rysto32@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Acquiring a mtx after an sx lock
Message-ID:  <bc2d970808180814ue926d43s7966b36ffa3c9699@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Are there any problems acquiring a sleep mutex after acquiring an sx lock?
man 9 locking says that you can't, but doesn't provide any reasons.
Obviously while you're holding the mutex you have to abide by the rules
applying to mutexes, but as long as you do that, I can't see why acquiring a
mutex after an sx lock would cause an issue.  Is the locking man page wrong
about this?

Ryan Stone



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bc2d970808180814ue926d43s7966b36ffa3c9699>