[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTik5iumKs-fPG5VZS5D0mygtG-sCYeftK5SlLoIy@mail.gmail.com>
Date: Thu, 20 May 2010 14:48:19 -0700
From: Michel Lespinasse <walken@...gle.com>
To: David Howells <dhowells@...hat.com>
Cc: 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 02/10] rwsem: fully separate code pathes to wake writers
vs readers
On Wed, May 19, 2010 at 5:04 AM, David Howells <dhowells@...hat.com> wrote:
> I hate code that jumps into braced blocks with goto. Would it be possible for
> you to do:
>
> readers_only:
> if (downgrading)
> goto wake_readers;
> ...
> wake_readers:
> /* Grant an infinite number of read locks to the readers at the front
> ...
>
> instead, please?
Applied. Note that next patch in the series removes that code anyway :)
--
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
--
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