question on kernel rwsem behaviour

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Friday, September 21, 2007 - 11:38 am

Hi all,

I just had a quick question on read-write semaphore semantics.  Suppose 
someone holds a sema for reading, then someone else tries to aquire it 
for writing, and blocks.  Finally, a third code path tries to aquire it 
for reading.

Does this third code path get the sema, or does it wait for the writer?

Based on looking at the implementation it seems like it waits, but I'd 
like to confirm that.

Thanks,

Chris
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
question on kernel rwsem behaviour, Chris Friesen, (Fri Sep 21, 11:38 am)
Re: question on kernel rwsem behaviour, Peter Zijlstra, (Fri Sep 21, 4:11 pm)