From: Arnd Bergmann Date: Thu, 2 Jan 2014 12:07:50 +0000 (+0100) Subject: sound: oss: dmasound: kill SLEEP() macro to avoid race X-Git-Tag: v3.14-rc1~143^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a1e0a80ceb766852e8abd5d4c3d9475611a7d85;p=pandora-kernel.git sound: oss: dmasound: kill SLEEP() macro to avoid race The use of interruptible_sleep_on_timeout in the dmasound driver is questionable and we want to kill off all sleep_on variants. This replaces the calls with wait_event_interruptible_timeout where possible, to wait for a particular event instead of blocking in a racy way. In the sq_write function, the easiest solution is an open-coded prepare_to_wait loop. Signed-off-by: Arnd Bergmann Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed