]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46e36a0d8ca1d4693e7f6874447ea69f381f13cd
tree5d8266800b9551192abfaed7eade5a1ad0ecf7cc
parent12429cf196c4dedccec1707c4ae90e5baf41afcd
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