* [PATCH 0/6] kill .ioctl file_operation @ 2010-07-03 22:15 Arnd Bergmann 2010-07-03 22:15 ` [PATCH 1/6] ia64/perfmon: convert to unlocked_ioctl Arnd Bergmann 0 siblings, 1 reply; 3+ messages in thread From: Arnd Bergmann @ 2010-07-03 22:15 UTC (permalink / raw) To: linux-kernel Cc: John Kacur, Frederic Weisbecker, Arnd Bergmann, alsa-devel, Al Viro, autofs, Cris, H. Peter Anvin, Ian Kent, Jaroslav Kysela, Jesper Nilsson, linux-ia64, Mikael Starvik, Takashi Iwai, Thomas Gleixner, Tony Luck This removes the .ioctl file operation from all the remaining users that are in today's linux-next tree. I'd like to have this added to linux-next to make sure we don't get any new users and we can seamlessly apply the final patches for this in 2.6.36. The intention behind removing the .ioctl operation is to be able to remove the big kernel lock (BKL) from the ioctl system call. Ideally, maintainers of the code in question should just apply the respective patches to their -next tree so we can simply apply the final patch removing the definition of .ioctl. Arnd Cc: alsa-devel@alsa-project.org Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: autofs@linux.kernel.org Cc: Cris <linux-cris-kernel@axis.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Ian Kent <raven@themaw.net> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Cc: John Kacur <jkacur@redhat.com> Cc: linux-ia64@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Mikael Starvik <starvik@axis.com> Cc: Takashi Iwai <tiwai@suse.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Arnd Bergmann (5): ia64/perfmon: convert to unlocked_ioctl sound/oss: convert to unlocked_ioctl autofs/autofs4: move compat_ioctl handling into fs v4l: convert v4l2-dev to unlocked_ioctl bkl: remove locked .ioctl file operation Frederic Weisbecker (1): cris: Pushdown the bkl from ioctl Documentation/filesystems/Locking | 8 +--- Documentation/filesystems/vfs.txt | 6 +-- arch/cris/arch-v10/drivers/gpio.c | 30 +++++++++---- arch/cris/arch-v10/drivers/i2c.c | 24 ++++++++--- arch/cris/arch-v10/drivers/sync_serial.c | 32 +++++++++---- arch/cris/arch-v32/drivers/cryptocop.c | 24 ++++++++--- arch/cris/arch-v32/drivers/mach-a3/gpio.c | 28 ++++++++---- arch/cris/arch-v32/drivers/mach-fs/gpio.c | 29 ++++++++---- arch/cris/arch-v32/drivers/sync_serial.c | 30 +++++++++---- arch/ia64/kernel/perfmon.c | 22 +++++----- drivers/media/video/v4l2-dev.c | 52 ++++++---------------- fs/autofs/root.c | 67 +++++++++++++++++++++++++++- fs/autofs4/root.c | 49 +++++++++++++++++++++ fs/bad_inode.c | 7 --- fs/compat_ioctl.c | 39 +---------------- fs/ioctl.c | 18 ++------ fs/proc/inode.c | 17 ++------ include/linux/auto_fs.h | 1 + include/linux/fs.h | 5 +- sound/oss/au1550_ac97.c | 54 +++++++++++++++--------- sound/oss/dmasound/dmasound_core.c | 35 ++++++++++++--- sound/oss/msnd_pinnacle.c | 15 ++++-- sound/oss/sh_dac_audio.c | 18 ++++++- sound/oss/swarm_cs4297a.c | 25 +++++++++-- sound/oss/vwsnd.c | 24 ++++++----- 25 files changed, 410 insertions(+), 249 deletions(-) ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/6] ia64/perfmon: convert to unlocked_ioctl 2010-07-03 22:15 [PATCH 0/6] kill .ioctl file_operation Arnd Bergmann @ 2010-07-03 22:15 ` Arnd Bergmann 2010-07-21 23:16 ` Frederic Weisbecker 0 siblings, 1 reply; 3+ messages in thread From: Arnd Bergmann @ 2010-07-03 22:15 UTC (permalink / raw) To: linux-kernel Cc: John Kacur, Frederic Weisbecker, Arnd Bergmann, Tony Luck, linux-ia64 The ioctl function in this driver does not do anything that requires the BKL, so make it use unlocked_ioctl. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-ia64@vger.kernel.org --- arch/ia64/kernel/perfmon.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index ab985f7..7443290 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c @@ -1696,8 +1696,8 @@ pfm_poll(struct file *filp, poll_table * wait) return mask; } -static int -pfm_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) +static long +pfm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { DPRINT(("pfm_ioctl called\n")); return -EINVAL; @@ -2174,15 +2174,15 @@ pfm_no_open(struct inode *irrelevant, struct file *dontcare) static const struct file_operations pfm_file_ops = { - .llseek = no_llseek, - .read = pfm_read, - .write = pfm_write, - .poll = pfm_poll, - .ioctl = pfm_ioctl, - .open = pfm_no_open, /* special open code to disallow open via /proc */ - .fasync = pfm_fasync, - .release = pfm_close, - .flush = pfm_flush + .llseek = no_llseek, + .read = pfm_read, + .write = pfm_write, + .poll = pfm_poll, + .unlocked_ioctl = pfm_ioctl, + .open = pfm_no_open, /* special open code to disallow open via /proc */ + .fasync = pfm_fasync, + .release = pfm_close, + .flush = pfm_flush }; static int -- 1.7.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/6] ia64/perfmon: convert to unlocked_ioctl 2010-07-03 22:15 ` [PATCH 1/6] ia64/perfmon: convert to unlocked_ioctl Arnd Bergmann @ 2010-07-21 23:16 ` Frederic Weisbecker 0 siblings, 0 replies; 3+ messages in thread From: Frederic Weisbecker @ 2010-07-21 23:16 UTC (permalink / raw) To: Arnd Bergmann; +Cc: linux-kernel, John Kacur, Tony Luck, linux-ia64 On Sun, Jul 04, 2010 at 12:15:05AM +0200, Arnd Bergmann wrote: > The ioctl function in this driver does not > do anything that requires the BKL, so make > it use unlocked_ioctl. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > Cc: Tony Luck <tony.luck@intel.com> > Cc: linux-ia64@vger.kernel.org > --- Applied, thanks! ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-21 23:16 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-07-03 22:15 [PATCH 0/6] kill .ioctl file_operation Arnd Bergmann 2010-07-03 22:15 ` [PATCH 1/6] ia64/perfmon: convert to unlocked_ioctl Arnd Bergmann 2010-07-21 23:16 ` Frederic Weisbecker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox