]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fix use of set_current_state() in eeh event handling set_current_state...
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 28 Mar 2012 12:20:58 +0000 (12:20 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Apr 2012 04:31:19 +0000 (14:31 +1000)
commit5c715d5c378bb0388426a589f267c406f5d0216f
tree2879a705de175bc7e956d90d72dee2bf1c38499c
parentc39954bb89d0481237b657f176efc26410b69e10
powerpc/eeh: Fix use of set_current_state() in eeh event handling set_current_state() wart

That set_current_state() won't work very well: the subsequent mutex_lock()
might flip the task back into TASK_RUNNING.

Attempt to put it somewhere where it might have been meant to be, and
attempt to describe why it might have been added.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh_event.c