powerpc/pserie: Use lmb_is_removable() to check removability
Michael Ellerman
patch-notifications at ellerman.id.au
Sat Dec 3 22:28:21 AEDT 2016
On Mon, 2016-11-28 at 16:50:45 UTC, Nathan Fontenot wrote:
> We should be using lmb_is_removable() to validate that enough LMBs
> are available to remove when doing a remove by count. This will check
> that the LMB is owned by the system and it is considered removable.
> This patch also adds a pr_info() notification to report the LMB count
> to remove was not satisfied.
>
> What we do now is just check that there are enough LMBs owned by the
> system when validating there are enough LMBs to remove. This can
> lead to situations where there are enough LMBs owned by the system
> but not enough that are considered removable. This results in having
> to bail out of the remove operation instead of just failing the request
> that we should have known wouldn't succeed.
>
> Signed-off-by: Nathan Fontenot <nfont at linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/2db029ef58ab7c47cecab5fe73fa6e
cheers
More information about the Linuxppc-dev
mailing list