Prev: x86 rwsem: take advantage of new RWSEM_WAITING_BIAS semantics
Next: rwsem: wake queued readers when writer blocks on active read lock
From: David Howells on 12 May 2010 08:30 Michel Lespinasse <walken(a)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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |