]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Manage EEH_PE_RECOVERING inside eeh_handle_normal_event()
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Mon, 19 Mar 2018 02:46:30 +0000 (13:46 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:44:58 +0000 (23:44 +1100)
commitd5ef80cd04f55f4c059a683eb603a49c22c539eb
tree96534921ae9df0f91607395734072986fd27e7bb
parent9a66882fad24f390a916bdc5d2006169f55d141c
powerpc/eeh: Manage EEH_PE_RECOVERING inside eeh_handle_normal_event()

Currently the EEH_PE_RECOVERING flag for a PE is managed by both the
caller and callee of eeh_handle_normal_event() (among other places not
considered here). This is complicated by the fact that the PE may
or may not have been invalidated by the call.

So move the callee's handling into eeh_handle_normal_event(), which
clarifies it and allows the return type to be changed to void (because
it no longer needs to indicate at the PE has been invalidated).

This should not change behaviour except in eeh_event_handler() where
it was previously possible to cause eeh_pe_state_clear() to be called
on an invalid PE, which is now avoided.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh_event.h
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/kernel/eeh_event.c