]> git.baikalelectronics.ru Git - kernel.git/commit
soundcore_open: Reduce the area BKL coverage
authorJohn Kacur <jkacur@redhat.com>
Sat, 3 Jul 2010 22:02:31 +0000 (00:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Jul 2010 16:07:30 +0000 (18:07 +0200)
commit100673ea11c9dbebe78a9c3828cd83bb7de24525
tree5d05843426e6e3a95b9744e43d96586bc2ab5c06
parent2273cad41b3f3b897850278571af5b2bdae7c68c
soundcore_open: Reduce the area BKL coverage

Most of this function is protected by the sound_loader_lock.
We can push down the BKL to this call out err = file->f_op->open(inode,file);

In order to build the sound core without the BKL, we
will need to push the lock_kernel() call into the ~20
device drivers that register their file operations.

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sound_core.c