Re: [RFC PATCH v1.9 00/14] livepatch: hybrid consistency model
From: Petr Mladek
Date: Wed Apr 06 2016 - 04:16:15 EST
On Tue 2016-04-05 08:44:30, Josh Poimboeuf wrote:
> On Fri, Apr 01, 2016 at 03:39:44PM +0200, Petr Mladek wrote:
> > On Fri 2016-03-25 14:34:47, Josh Poimboeuf wrote:
> > > - update documentation for sysfs, proc, livepatch
> >
> > Also we should publish somewhere the information about TIF_KLP_NEED_UPDATE
> > flag, e.g. /proc/<pid>/klp_need_update. It is handy to see what
> > process blocks the transition. We have something similar in
> > kGraft, see in_progress_show() at
> > https://git.kernel.org/cgit/linux/kernel/git/jirislaby/kgraft.git/commit/?h=kgraft-4.4&id=1c82fbd7b1fe240f4ed178a6506a93033f6a4bed
>
> Patch 13/14 exposes the per-task patched state in /proc, so I think that
> already does what you're asking for? It doesn't expose
> TIF_KLP_NEED_UPDATE, but that's more of an internal detail I think.
Heh, I have missed it. Yup, the per-thread patch state info seems to
be enough.
Best Regards,
Petr