From: Frederic Weisbecker <fweisbec@gmail.com>
To: John Kacur <jkacur@redhat.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [PATCH] uml: Convert to unlocked_ioctls to remove implicit BKL
Date: Mon, 17 May 2010 00:30:58 +0200 [thread overview]
Message-ID: <20100516223054.GA5276@nowhere> (raw)
In-Reply-To: <1273246468-11048-1-git-send-email-jkacur@redhat.com>
On Fri, May 07, 2010 at 05:34:28PM +0200, John Kacur wrote:
> Convert to hostaudio_ioctl and hostmixer_ioctl_mixdev to unlocked_ioctl
>
> Signed-off-by: John Kacur <jkacur@redhat.com>
> ---
Hi John,
The patch looks good and I'm about to queue it, however it lacks
a changelog that properly explains the safety of the conversion.
Are you fine with this?
"We don't do anything except relying the ioctl to the host which
should then take care of the synchronization."
Thanks.
> arch/um/drivers/hostaudio_kern.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c
> index 368219c..ae42695 100644
> --- a/arch/um/drivers/hostaudio_kern.c
> +++ b/arch/um/drivers/hostaudio_kern.c
> @@ -136,7 +136,7 @@ static unsigned int hostaudio_poll(struct file *file,
> return mask;
> }
>
> -static int hostaudio_ioctl(struct inode *inode, struct file *file,
> +static long hostaudio_ioctl(struct file *file,
> unsigned int cmd, unsigned long arg)
> {
> struct hostaudio_state *state = file->private_data;
> @@ -223,7 +223,7 @@ static int hostaudio_release(struct inode *inode, struct file *file)
>
> /* /dev/mixer file operations */
>
> -static int hostmixer_ioctl_mixdev(struct inode *inode, struct file *file,
> +static long hostmixer_ioctl_mixdev(struct file *file,
> unsigned int cmd, unsigned long arg)
> {
> struct hostmixer_state *state = file->private_data;
> @@ -289,7 +289,7 @@ static const struct file_operations hostaudio_fops = {
> .read = hostaudio_read,
> .write = hostaudio_write,
> .poll = hostaudio_poll,
> - .ioctl = hostaudio_ioctl,
> + .unlocked_ioctl = hostaudio_ioctl,
> .mmap = NULL,
> .open = hostaudio_open,
> .release = hostaudio_release,
> @@ -298,7 +298,7 @@ static const struct file_operations hostaudio_fops = {
> static const struct file_operations hostmixer_fops = {
> .owner = THIS_MODULE,
> .llseek = no_llseek,
> - .ioctl = hostmixer_ioctl_mixdev,
> + .unlocked_ioctl = hostmixer_ioctl_mixdev,
> .open = hostmixer_open_mixdev,
> .release = hostmixer_release,
> };
> --
> 1.6.6.1
>
next prev parent reply other threads:[~2010-05-16 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 15:34 [PATCH] uml: Convert to unlocked_ioctls to remove implicit BKL John Kacur
2010-05-16 22:30 ` Frederic Weisbecker [this message]
2010-05-17 11:31 ` John Kacur
2010-05-17 2:48 ` Frederic Weisbecker
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=20100516223054.GA5276@nowhere \
--to=fweisbec@gmail.com \
--cc=arnd@arndb.de \
--cc=jdike@addtoit.com \
--cc=jkacur@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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