summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-04-07 18:33:57 +0200
committerTakashi Iwai <tiwai@suse.de>2010-04-07 18:33:57 +0200
commit5b5cd553e3ac49e6a9bac148f07ab94d3d96dae5 (patch)
tree867c8646283afbafb28672cdcfdca29a1bb16697
parentd05468b72a32ec45aefb48caa00bd99350b9cf86 (diff)
downloadlwn-5b5cd553e3ac49e6a9bac148f07ab94d3d96dae5.tar.gz
lwn-5b5cd553e3ac49e6a9bac148f07ab94d3d96dae5.zip
ALSA: info - Remove BKL
Use the fine-grained mutex for the assigned info object, instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index d749a0d394a7..fe836618fa25 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -167,7 +167,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
data = file->private_data;
entry = data->entry;
- lock_kernel();
+ mutex_lock(&entry->access);
switch (entry->content) {
case SNDRV_INFO_CONTENT_TEXT:
switch (orig) {
@@ -196,7 +196,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
}
ret = -ENXIO;
out:
- unlock_kernel();
+ mutex_unlock(&entry->access);
return ret;
}