提交 5b5cd553 编写于 作者: T Takashi Iwai

ALSA: info - Remove BKL

Use the fine-grained mutex for the assigned info object, instead.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 d05468b7
...@@ -167,7 +167,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) ...@@ -167,7 +167,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
data = file->private_data; data = file->private_data;
entry = data->entry; entry = data->entry;
lock_kernel(); mutex_lock(&entry->access);
switch (entry->content) { switch (entry->content) {
case SNDRV_INFO_CONTENT_TEXT: case SNDRV_INFO_CONTENT_TEXT:
switch (orig) { switch (orig) {
...@@ -196,7 +196,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) ...@@ -196,7 +196,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
} }
ret = -ENXIO; ret = -ENXIO;
out: out:
unlock_kernel(); mutex_unlock(&entry->access);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册