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)
commit9b218f63e50e590fe0c7724a0838d7eaa6dae5ce
tree2879a705de175bc7e956d90d72dee2bf1c38499c
parent37ef9bd48af6ab9a3d1fd28df4f929abc19f2cc3
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