[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10139.1273669716@redhat.com>
Date: Wed, 12 May 2010 14:08:36 +0100
From: David Howells <dhowells@...hat.com>
To: Michel Lespinasse <walken@...gle.com>
Cc: dhowells@...hat.com,
Linus Torvalds <torvalds@...ux-foundation.org>,
Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Mike Waychison <mikew@...gle.com>,
Suleiman Souhlal <suleiman@...gle.com>,
Ying Han <yinghan@...gle.com>
Subject: Re: [PATCH 11/12] x86 rwsem: down_read_unfair implementation
Michel Lespinasse <walken@...gle.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists