Re: Acquiring a mtx after an sx lock

2008-08-19 Thread Julian Elischer
Ed Maste wrote: On Mon, Aug 18, 2008 at 11:38:40AM -0700, Julian Elischer wrote: Ed Maste wrote: Ahh, it seems ups' commit of rmlocks changed the "You have: sx_lock, You want: Slp_mtx" case from no to ok (in r173444). Ignore me.. I was reading the table backwards.. of course if you have an sx

Re: Acquiring a mtx after an sx lock

2008-08-19 Thread Ed Maste
On Mon, Aug 18, 2008 at 11:38:40AM -0700, Julian Elischer wrote: > >Ed Maste wrote: > >>Ahh, it seems ups' commit of rmlocks changed the "You have: sx_lock, > >>You want: Slp_mtx" case from no to ok (in r173444). > > Ignore me.. I was reading the table backwards.. of course if you have > an sx y

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Julian Elischer
Julian Elischer wrote: Ed Maste wrote: On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: On Mon, Aug 18, 2008 at 11:54 AM, Max Laier <[EMAIL PROTECTED]> wrote: On Monday 18 August 2008 17:14:01 Ryan Stone wrote: Are there any problems acquiring a sleep mutex after acquiring an sx

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Julian Elischer
Ed Maste wrote: On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: On Mon, Aug 18, 2008 at 11:54 AM, Max Laier <[EMAIL PROTECTED]> wrote: On Monday 18 August 2008 17:14:01 Ryan Stone wrote: Are there any problems acquiring a sleep mutex after acquiring an sx lock? man 9 locking sa

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Ed Maste
On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: > On Mon, Aug 18, 2008 at 11:54 AM, Max Laier <[EMAIL PROTECTED]> wrote: > > > On Monday 18 August 2008 17:14:01 Ryan Stone wrote: > > > Are there any problems acquiring a sleep mutex after acquiring an sx > > lock? > > > man 9 locking s

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Ryan Stone
I guess the FreeBSD 8 man pages have been fixed but the FreeBSD 7 ones haven't. This is what I was looking at: http://www.freebsd.org/cgi/man.cgi?query=locking&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html Thanks for the response, Ryan Stone On Mon, Aug 18, 2008 at 11:54 AM, Max L

Re: Acquiring a mtx after an sx lock

2008-08-18 Thread Max Laier
On Monday 18 August 2008 17:14:01 Ryan Stone wrote: > 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

Acquiring a mtx after an sx lock

2008-08-18 Thread Ryan Stone
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 a