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:
d05468b
)
ALSA: info - Remove BKL
author
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Apr 2010 16:33:57 +0000
(18:33 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Apr 2010 16:33:57 +0000
(18:33 +0200)
Use the fine-grained mutex for the assigned info object, instead.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/info.c
b/sound/core/info.c
index d749a0d394a7fb5d2327e4e659dc42d194edd9b5..fe836618fa25ee7949acff599afe1ce38679abbb 100644
(file)
--- 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;
}