提交 b78032a7 编写于 作者: A Arnd Bergmann 提交者: Jonathan Corbet

message-i2o-i2o_config: BKL pushdown

Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 f18f81da
...@@ -1061,6 +1061,7 @@ static int cfg_open(struct inode *inode, struct file *file) ...@@ -1061,6 +1061,7 @@ static int cfg_open(struct inode *inode, struct file *file)
if (!tmp) if (!tmp)
return -ENOMEM; return -ENOMEM;
lock_kernel();
file->private_data = (void *)(i2o_cfg_info_id++); file->private_data = (void *)(i2o_cfg_info_id++);
tmp->fp = file; tmp->fp = file;
tmp->fasync = NULL; tmp->fasync = NULL;
...@@ -1074,6 +1075,7 @@ static int cfg_open(struct inode *inode, struct file *file) ...@@ -1074,6 +1075,7 @@ static int cfg_open(struct inode *inode, struct file *file)
spin_lock_irqsave(&i2o_config_lock, flags); spin_lock_irqsave(&i2o_config_lock, flags);
open_files = tmp; open_files = tmp;
spin_unlock_irqrestore(&i2o_config_lock, flags); spin_unlock_irqrestore(&i2o_config_lock, flags);
unlock_kernel();
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册