From: Arnd Bergmann Date: Thu, 2 Jan 2014 12:07:49 +0000 (+0100) Subject: sound: oss: vwsnd: avoid interruptible_sleep_on X-Git-Tag: v3.14-rc1~143^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd6972a921e148beea54919a00aa7b0bf046ff1;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed