projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930ab4e
)
ocfs2-stack_user: BKL pushdown
author
Arnd Bergmann
<arnd@arndb.de>
Tue, 20 May 2008 17:16:28 +0000
(19:16 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Wed, 2 Jul 2008 21:06:23 +0000
(15:06 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/ocfs2/stack_user.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/stack_user.c
b/fs/ocfs2/stack_user.c
index b503772cd0ec83f86a2b55aa5fa512cd8ce20c4a..cd120011104dddaae95cc013dba7fb0240347392 100644
(file)
--- 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;
}