From: Jiri Kosina <jikos@kernel.org>
To: Miroslav Benes <mbenes@suse.cz>
Cc: jpoimboe@redhat.com, jeyu@kernel.org, pmladek@suse.com,
live-patching@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] livepatch: Send a fake signal periodically
Date: Wed, 16 Jan 2019 22:11:12 +0100 (CET) [thread overview]
Message-ID: <nycvar.YFH.7.76.1901162210090.6626@cbobk.fhfr.pm> (raw)
In-Reply-To: <20190115164507.14676-2-mbenes@suse.cz>
On Tue, 15 Jan 2019, Miroslav Benes wrote:
> An administrator may send a fake signal to all remaining blocking tasks
> of a running transition by writing to
> /sys/kernel/livepatch/<patch>/signal attribute. Let's do it
> automatically after 15 seconds. The timeout is chosen deliberately. It
> gives the tasks enough time to transition themselves.
>
> Theoretically, sending it once should be more than enough. However,
> every task must get outside of a patched function to be successfully
> transitioned. It could prove not to be simple and resending could be
> helpful in that case.
>
> A new workqueue job could be a cleaner solution to achieve it, but it
> could also introduce deadlocks and cause more headaches with
> synchronization and cancelling.
>
> Signed-off-by: Miroslav Benes <mbenes@suse.cz>
[ ... snip ... ]
> @@ -400,6 +408,7 @@ void klp_try_complete_transition(void)
> */
> schedule_delayed_work(&klp_transition_work,
> round_jiffies_relative(HZ));
> +
> return;
> }
I somehow didn't like the newly added newline here :) so I've removed it,
and applied both patches to for-5.1/fake-signal.
Thanks,
--
Jiri Kosina
SUSE Labs
next prev parent reply other threads:[~2019-01-16 21:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-15 16:45 [PATCH v2 0/2] Periodic fake signal Miroslav Benes
2019-01-15 16:45 ` [PATCH v2 1/2] livepatch: Send a fake signal periodically Miroslav Benes
2019-01-16 21:11 ` Jiri Kosina [this message]
2019-01-15 16:45 ` [PATCH v2 2/2] livepatch: Remove signal sysfs attribute Miroslav Benes
2019-01-16 22:12 ` [PATCH v2 0/2] Periodic fake signal Josh Poimboeuf
2019-01-17 9:12 ` Petr Mladek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.YFH.7.76.1901162210090.6626@cbobk.fhfr.pm \
--to=jikos@kernel.org \
--cc=jeyu@kernel.org \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®