On Mon, 22 Aug 2005, Matthew Wilcox wrote:

> On Mon, Aug 22, 2005 at 01:26:17PM -0700, Christoph Lameter wrote:
> > The adjustment is RWSEM_WAITING_BIAS - RWSEM_ACTIVE bias. This eliminates
> > the RWSEM_ACTIVE_BIAS but adds RWSEM_WAITING_BIAS for each waiter.
> 
> You're looking at rwsem_down_read_failed() instead of 
> rwsem_down_write_failed()

down_write already adds RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS in 
include/asm-ia64/rwsem.h. It only removes RW_SEM_WAITING_BIAS when it 
fails. So the net outcome is that a writer also adds RWSEM_WAITING_BIAS to 
count.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to