lkml.org 
[lkml]   [2013]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rwsem: reduce spinlock contention in wakeup code path

* Michel Lespinasse <walken@google.com> wrote:

> That said, I am very scared of using rwlock_t here, and I would much
> prefer we choose a fair lock (either spinlock or a new rwlock
> implementation which guarantees not to starve any locker thread)

Given how few users rwlock_t has today we could attempt to make it
reader-writer fair, as long as the usecase of a hardirq or softirq
context always getting nested read access on the same CPU is preserved.

(but that can be done - if nothing else then with an explicit context
check.)

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-09-30 09:21    [W:0.374 / U:1.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site