Re: [Linux-ia64] reader-writer livelock problem

From: Linus Torvalds <torvalds_at_transmeta.com>
Date: 2002-11-09 04:28:39
On Fri, 8 Nov 2002, Linus Torvalds wrote:
> 
> NOTE! I'm not saying the existing practice is necessarily a good tradeoff,
> and maybe we should just make sure to find all such cases and turn the
> read_lock() calls into read_lock_irqsave() and then make the rw-locks
> block readers on pending writers. But it's certainly more work and cause
> for subtler problems than just naively changing the rw implementation.

Actually, giving this som emore thought, I really suspect that the
simplest solution is to alloc a separate "fair_read_lock()", and paths
that need to care about fairness (and know they don't have the irq issue)  
can use that, slowly porting users over one by one...

		Linus
Received on Fri Nov 08 09:28:50 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST