[1/6] powerpc/eeh: Cleanup eeh_pe_clear_frozen_state()
Michael Ellerman
patch-notifications at ellerman.id.au
Sat Feb 9 00:02:27 AEDT 2019
On Thu, 2018-11-29 at 03:16:37 UTC, Sam Bobroff wrote:
> The 'clear_sw_state' parameter for eeh_pe_clear_frozen_state() is
> redundant because it has no effect (except in the rare case of a
> hardware error part way through unfreezing a tree of PEs, where it
> would dangerously allow partial de-isolation before returning
> failure).
>
> It is passed down to __eeh_pe_clear_frozen_state(), and from there to
> eeh_unfreeze_pe(), where it causes EEH_PE_ISOLATED to be removed
> from the state of each PE during the traversal. However, when the
> traversal finishes, EEH_PE_ISOLATED is unconditionally removed by a
> call to eeh_pe_state_clear() regardless of the parameter's value.
>
> So remove the flag and pass false to eeh_unfreeze_pe() (to avoid the
> rare case described above, as it was before the flag was introduced).
> Also, perform the recursion directly in the function and eliminate a
> bit of boilerplate.
>
> There should be no change in functionality, except as mentioned above.
>
> Signed-off-by: Sam Bobroff <sbobroff at linux.ibm.com>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/3376cb91ed908eb0728900894a77d820
cheers
More information about the Linuxppc-dev
mailing list