ocfs2-stack_user: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
930ab4e532
commit
b7fdf9fdd6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue