[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6c613fc8-a436-a17e-799f-afd2ead02bb5@redhat.com>
Date: Wed, 16 Mar 2022 21:43:18 -0400
From: Joe Lawrence <joe.lawrence@...hat.com>
To: Miroslav Benes <mbenes@...e.cz>, Petr Mladek <pmladek@...e.com>
Cc: Chengming Zhou <zhouchengming@...edance.com>, jpoimboe@...hat.com,
jikos@...nel.org, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org, songmuchun@...edance.com,
qirui.001@...edance.com
Subject: Re: [PATCH v3] livepatch: Don't block removal of patches that are
safe to unload
On 3/16/22 11:03 AM, Miroslav Benes wrote:
>>>> + /*
>>>> + * Only need to set forced flag for the transition patch
>>>> + * when force transition to KLP_UNPATCHED state, but
>>>> + * have to set forced flag for all replaced patches
>>>> + * when force atomic replace transition.
>>>> + */
>>>
>>> How about something like
>>>
>>> /*
>>> * Set forced flag for patches being removed, which is the transition
>>> * patch in KLP_UNPATCHED state or all replaced patches when forcing
>>> * the atomic replace transition.
>>> */
>>
>> Or just the first sentence:
>>
>> /* Set forced flag for patches being removed */
>>
>> The rest is visible from the code.
>
> True. This would work for me as well.
>
Sorry for not following this one more closely as we don't use force nor
atomic replace patches (yet) ... but the code and use case seems clear
enough for the shorter comment.
Acked-by: Joe Lawrence <joe.lawrence@...hat.com>
--
Joe
Powered by blists - more mailing lists