Re: Mutex vs semaphores scheduler bug
From: David Howells
Date: Thu Oct 15 2009 - 19:45:40 EST
Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/