staging/lustre: Only set INTERRUPTIBLE state before calling schedule
authorOleg Drokin <green@linuxhacker.ru>
Sat, 16 May 2015 07:38:31 +0000 (03:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 00:29:44 +0000 (09:29 +0900)
commit65609bd672e4fb232f81010b96ef8892833276b7
tree5d8266800b9551192abfaed7eade5a1ad0ecf7cc
parente630eb48ff320b52ea1a1237e8ed0d23e4e9e900
staging/lustre: Only set INTERRUPTIBLE state before calling schedule

In __l_wait_event the condition could be a complicated function that does
allocations and other potentialy blocking activities, so it sohuld
not be called in a task state other than RUNNABLE

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_lib.h