lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 06/12] rwsem: wake queued readers when other readers are active
Date
Michel Lespinasse <walken@google.com> wrote:

> In this situation, it would be perfectly fine to let threads B and C work
> in parallel as they each only want a read acquire on the rwsem. We can
> recognize this situation and let A wake B as long as there are no active
> writers on the rwsem.

There can't be any active writers on the rwsem. An active writer must have
just been upped and is in the process of waking the first sleeper up.

David


\
 
 \ /
  Last update: 2010-05-12 14:25    [W:0.213 / U:28.320 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site