From: Alexey Dobriyan <adobriyan@gmail.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: LKML <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>,
hjk@linutronix.de
Subject: Re: [PATCH, RFC] uio BKL removal
Date: Thu, 28 Aug 2008 00:45:11 +0400 [thread overview]
Message-ID: <20080827204511.GA31638@x200.localdomain> (raw)
In-Reply-To: <20080826171532.2414c7a2@bike.lwn.net>
On Tue, Aug 26, 2008 at 05:15:32PM -0600, Jonathan Corbet wrote:
> UIO: BKL removal
>
> Remove the BKL from the UIO driver, and add complete locking where needed
> to serialize idr accesses.
> --- a/drivers/uio/uio.c
> +++ b/drivers/uio/uio.c
> @@ -47,6 +47,9 @@ static struct uio_class {
> struct class *class;
> } *uio_class;
>
> +/* Protect idr accesses */
You can rename it to uio_idr_mutex (it's mutex, dammit!) and put next to
uio_idr and avoid comment ;-) Or if locking around _pre_get() isn't
necessary you can actually make it spinlock ;-) Anyway, put it close.
> +static DEFINE_MUTEX(minor_lock);
Indeed, BKL protects nothing because of GFP_KERNEL allocation.
prev parent reply other threads:[~2008-08-27 20:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 23:15 Jonathan Corbet
2008-08-27 0:06 ` Greg KH
2008-08-27 8:08 ` Hans J. Koch
2008-08-27 20:45 ` Alexey Dobriyan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080827204511.GA31638@x200.localdomain \
--to=adobriyan@gmail.com \
--cc=corbet@lwn.net \
--cc=greg@kroah.com \
--cc=hjk@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®