| From | David Howells <> | Subject | Re: [PATCH 11/12] x86 rwsem: down_read_unfair implementation | Date | Wed, 12 May 2010 14:08:36 +0100 |
| |
Michel Lespinasse <walken@google.com> 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
|