Re: [PATCH 11/12] x86 rwsem: down_read_unfair implementation

From: David Howells
Date: Wed May 12 2010 - 09:10:10 EST


Michel Lespinasse <walken@xxxxxxxxxx> wrote:

> #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1)
> #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
> +#define RWSEM_ACTIVE_WRITE_BIAS (2 * RWSEM_WAITING_BIAS + \
> + RWSEM_ACTIVE_BIAS)

These are getting a bit meaningless. Can you replace them with hex numbers to
make it clearer what's going on? Putting a worked example in the patch
description would be good too.

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/