diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 19:16:28 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-02 15:06:23 -0600 |
commit | b7fdf9fdd6457c9ed02099fe82bab92b0b3e291b (patch) | |
tree | d35a977d782982fc49a4ca86bea37195c5502ecf /fs/ocfs2 | |
parent | 930ab4e532623795f934467c452a8c71be2c30fe (diff) | |
download | kernel-crypto-b7fdf9fdd6457c9ed02099fe82bab92b0b3e291b.tar.gz kernel-crypto-b7fdf9fdd6457c9ed02099fe82bab92b0b3e291b.tar.xz kernel-crypto-b7fdf9fdd6457c9ed02099fe82bab92b0b3e291b.zip |
ocfs2-stack_user: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/stack_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c index b503772cd0e..cd120011104 100644 --- a/fs/ocfs2/stack_user.c +++ b/fs/ocfs2/stack_user.c @@ -21,6 +21,7 @@ #include <linux/fs.h> #include <linux/miscdevice.h> #include <linux/mutex.h> +#include <linux/smp_lock.h> #include <linux/reboot.h> #include <asm/uaccess.h> @@ -619,10 +620,12 @@ static int ocfs2_control_open(struct inode *inode, struct file *file) return -ENOMEM; p->op_this_node = -1; + lock_kernel(); mutex_lock(&ocfs2_control_lock); file->private_data = p; list_add(&p->op_list, &ocfs2_control_private_list); mutex_unlock(&ocfs2_control_lock); + unlock_kernel(); return 0; } |