]> git.baikalelectronics.ru Git - kernel.git/commit
sound: oss: msnd_pinnacle: avoid interruptible_sleep_on_timeout
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Jan 2014 12:07:47 +0000 (13:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jan 2014 15:01:20 +0000 (16:01 +0100)
commitd499c0dc13e96d44890b744015c3c9cefa8bf731
tree4b251c8c370ee4d31799ddc756388239712c2386
parentcc51d0dc6f68d37e06c6ad6cc4a4a652b38dc3f4
sound: oss: msnd_pinnacle: avoid interruptible_sleep_on_timeout

We want to remove all sleep_on variants from the kernel because they are
racy. In case of the pinnacle driver, we can replace
interruptible_sleep_on_timeout with wait_event_interruptible_timeout
by changing the meaning of a few flags used in the driver so they
are cleared at wakeup time, which is a somewhat more appropriate
way to do the same, although probably still racy.

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