Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1652367
| From | Miroslav Benes <mbenes@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] livepatch: force transition process to finish |
| Date | 2017-05-29 11:30 +0200 |
| Message-ID | <tMp9V-6ft-39@gated-at.bofh.it> (permalink) |
| References | <tIspI-2kb-17@gated-at.bofh.it> <tIspL-2kb-81@gated-at.bofh.it> <tLrx7-r5-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 26 May 2017, Josh Poimboeuf wrote:
> On Thu, May 18, 2017 at 02:00:43PM +0200, Miroslav Benes wrote:
> > @@ -591,3 +591,19 @@ void klp_send_fake_signal(void)
> > }
> > read_unlock(&tasklist_lock);
> > }
> > +
> > +/*
> > + * Drop TIF_PATCH_PENDING of all tasks on admin's request. This forces an
> > + * existing transition to finish.
> > + */
> > +void klp_unmark_tasks(void)
> > +{
> > + struct task_struct *g, *task;
> > +
> > + pr_warn("all tasks marked as migrated on admin's request\n");
> > +
> > + read_lock(&tasklist_lock);
> > + for_each_process_thread(g, task)
> > + klp_update_patch_state(task);
> > + read_unlock(&tasklist_lock);
> > +}
>
> Should this also force the idle tasks to transition?
Yes. Thanks.
Miroslav
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 3/3] livepatch: force transition process to finish Josh Poimboeuf <jpoimboe@redhat.com> - 2017-05-26 19:50 +0200 Re: [PATCH 3/3] livepatch: force transition process to finish Miroslav Benes <mbenes@suse.cz> - 2017-05-29 11:30 +0200
csiph-web