From: Dmitry Torokhov Date: Sat, 21 Apr 2012 05:33:08 +0000 (-0700) Subject: Input: serio_raw - ensure we don't block in non-blocking read X-Git-Tag: v3.5-rc1~103^2^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=486c8aba39e5f194519cd5c0e85e5d1de8b74b03;p=pandora-kernel.git Input: serio_raw - ensure we don't block in non-blocking read Avoid calling wait_event_interruptible() if client requested non-blocking read, since it is not guaranteed that another thread will not consume event after we checked if serio_raw->head != serio_raw->tail. Also ensure we do not return 0 but keep waiting instead in blocking case, when another thread steals "our" byte. Reviewed-by: David Herrmann Reviewed-by: Che-Liang Chiou Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed