]> git.baikalelectronics.ru Git - kernel.git/commit
sound: oss: vwsnd: avoid interruptible_sleep_on
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Jan 2014 12:07:49 +0000 (13:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jan 2014 15:01:27 +0000 (16:01 +0100)
commit923269c64eeb6341cc2c608e4e7858fa413ae612
tree37e0f74ceba884d3a2af13b8bf7e8d2a412619c9
parentd499c0dc13e96d44890b744015c3c9cefa8bf731
sound: oss: vwsnd: avoid interruptible_sleep_on

Interruptible_sleep_on is racy and we want to remove it. This replaces
the use in the vwsnd driver with an open-coded prepare_to_wait
loop that fixes the race between concurrent open() and close() calls,
and also drops the global mutex while waiting here, which restores
the original behavior that was changed during the BKL removal.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/vwsnd.c