• Sam Bobroff's avatar
    powerpc/eeh: Manage EEH_PE_RECOVERING inside eeh_handle_normal_event() · 37fd8125
    Sam Bobroff authored
    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: default avatarSam Bobroff <sam.bobroff@au1.ibm.com>
    Reviewed-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    37fd8125
eeh_driver.c 28 KB