[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091011092015.37a69847@bike.lwn.net>
Date: Sun, 11 Oct 2009 09:20:15 -0600
From: Jonathan Corbet <corbet@....net>
To: John Kacur <jkacur@...hat.com>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Frederic Weisbecker <fweisbec@...il.com>,
Christoph Hellwig <hch@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Vincent^M^J Sanders <vince@...tec.co.uk>,
Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH] sound_core.c: Remove BKL from soundcore_open
On Sun, 11 Oct 2009 02:25:53 +0200 (CEST)
John Kacur <jkacur@...hat.com> wrote:
> Yikes, I missed that. Still I'm loath to just push it down like that. I
> wonder if I can use a mutex there. What about the following patch?
Unfortunately, it's often not quite that simple. What if, say, there's
an ioctl() function somewhere which is depending on the BKL for
exclusion here? This change would then introduce races. Changing the
BKL to a mutex is a real semantic change which requires a real survey
of the code affected.
That's why the pushdown approach has been taken so often. It's a pain,
but it eventually shines a spotlight on every bit of affected code.
jon
--
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