Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7fdf9fd authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet
Browse files

ocfs2-stack_user: BKL pushdown



Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 930ab4e5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}