From: Arnd Bergmann Date: Thu, 2 Jan 2014 12:07:38 +0000 (+0100) Subject: tty/amiserial: avoid interruptible_sleep_on X-Git-Tag: v3.14-rc1~149^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=591cee0a35632031cd925392a1bce507dcfe9ea8;p=pandora-kernel.git tty/amiserial: avoid interruptible_sleep_on interruptible_sleep_on is generally problematic and we want to get rid of it. In case of TIOCMIWAIT, that race is actually in user space and does not get fixed since we can only detect changes after entering the ioctl handler, but it removes one more caller. This instance can not be trivially replaced with wait_event, so I chose to open-code the wait loop using prepare_to_wait/finish_wait. Signed-off-by: Arnd Bergmann Cc: Geert Uytterhoeven Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed