From 14cd442c1667d4e01fef2ffd95e88b4d3a25519c Mon Sep 17 00:00:00 2001 From: Frederic Weisbecker Date: Tue, 30 Mar 2010 07:32:50 +0200 Subject: [PATCH] --- yaml --- r: 192260 b: refs/heads/master c: c2f980500a81006173daf3048284b28832858616 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/proc/inode.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c2a831745d24..82456b6b7bbb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d79b6f4de5db0103ceb4734e42ad101d836d61d9 +refs/heads/master: c2f980500a81006173daf3048284b28832858616 diff --git a/trunk/fs/proc/inode.c b/trunk/fs/proc/inode.c index 445a02bcaab3..afcda8588e1c 100644 --- a/trunk/fs/proc/inode.c +++ b/trunk/fs/proc/inode.c @@ -231,9 +231,9 @@ static long proc_reg_unlocked_ioctl(struct file *file, unsigned int cmd, unsigne if (rv == -ENOIOCTLCMD) rv = -EINVAL; } else if (ioctl) { - lock_kernel(); + WARN_ONCE(1, "Procfs ioctl handlers must use unlocked_ioctl, " + "%pf will be called without the Bkl held\n", ioctl); rv = ioctl(file->f_path.dentry->d_inode, file, cmd, arg); - unlock_kernel(); } pde_users_dec(pde);