Skip to content

Commit

Permalink
ALSA: info - Remove BKL
Browse files Browse the repository at this point in the history
Use the fine-grained mutex for the assigned info object, instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 7, 2010
1 parent d05468b commit 5b5cd55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5b5cd55

Please sign in to comment.