lkml.org 
[lkml]   [2020]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [POC 11/23] livepatch: Safely detect forced transition when removing split livepatch modules
From
Date
Hi Petr,

On 1/17/20 3:03 PM, Petr Mladek wrote:
> The information about forced livepatch transition is currently stored
> in struct klp_patch. But there is not any obvious safe way how to
> access it when the split livepatch modules are removed.
>

If that's the only motivation to do this, klp_objects could have a
reference to the klp_patch they are part of. This could easily be set
when adding the klp_object to the klp_patch->obj_list in
klp_init_object_early() .

Having this reference could also prove useful in future scenarios.

Cheers,

--
Julien Thierry

\
 
 \ /
  Last update: 2020-01-22 11:15    [W:0.270 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site