Thread (8 messages) 8 messages, 5 authors, 2023-12-07

Re: [PATCH 2/3] powerpc/pseries/memhp: Remove unbalanced dlpar_release_drc() call

From: Scott Cheloha <hidden>
Date: 2023-11-30 20:10:26

On Nov 28, 2023, at 9:21 AM, Nathan Lynch [off-list ref] wrote:

Nick Child [off-list ref] writes:
quoted
Hi Nathan,
Patches 1 and 3 LGTM
thanks.
quoted
Regarding this patch, dlpar_memory_remove_by_count() calls 
dlpar_add_lmb() and does not free drc on add error.
dlpar_add_lmb() is called here in error recovery so probably
not a big deal.

This is all new code to me but it looks like if the requested
number of lmbs cannot be removed then it attempts to add back
the ones that were successfully removed. So if you cannot add
an lmb that WAS successfully removed, it seems sane to also
release the drc.
Maybe I'll drop this one for now and turn my attention to removing all
the high-level rollback logic in this code. There's no reliable way to
accomplish what it's trying to do (i.e. restore the original quantity of
LMBs) and it just complicates things.
Removing all of the rollback code is a wonderful idea.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help