lkml.org 
[lkml]   [2009]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Mutex vs semaphores scheduler bug
Date
Peter Zijlstra <peterz@infradead.org> wrote:

> The problem appears to be that rwsem doesn't allow lock-stealing

With good reason. rwsems can be read or write locked for a long time - so if
readers can jump the queue on read-locked rwsems, then writer starvation is a
real possibility. I carefully implemented it so that it is a strict FIFO to
avoid certain problems I was having.

David


\
 
 \ /
  Last update: 2009-10-16 01:53    [W:0.283 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site