procfs: Push down the bkl from ioctl
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 30 Mar 2010 05:27:50 +0000 (07:27 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 17 May 2010 01:06:12 +0000 (03:06 +0200)
commitd79b6f4de5db0103ceb4734e42ad101d836d61d9
tree42fada62898eb8d70faff151d87c16575dbabd58
parent73296bc611cee009f3be6b451e827d1425b9c10f
procfs: Push down the bkl from ioctl

Push down the bkl from procfs's ioctl main handler to its users.
Only three procfs users implement an ioctl (non unlocked) handler.
Turn them into unlocked_ioctl and push down the Devil inside.

v2: PDE(inode)->data doesn't need to be under bkl
v3: And don't forget to git-add the result
v4: Use wrappers to pushdown instead of an invasive and error prone
    handlers surgery.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: John Kacur <jkacur@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
drivers/char/i8k.c
drivers/isdn/divert/divert_procfs.c
net/sunrpc/cache.c