All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Tobias Schaffner <tobias.schaffner@siemens.com>
Cc: xenomai@lists.linux.dev
Subject: Re: [PATCH evl] evl/thread: fix lost kick of a thread running on a remote CPU
Date: Wed, 11 Nov 2026 09:32:29 +0100	[thread overview]
Message-ID: <87fqx76a5e.fsf@xenomai.org> (raw)
In-Reply-To: <20261110181130.633632-1-tobias.schaffner@siemens.com> (Tobias Schaffner's message of "Tue, 10 Nov 2026 19:11:30 +0100")

Tobias Schaffner <tobias.schaffner@siemens.com> writes:

> evl_kick_thread() skips the mayday if the kicked thread is current on
> its own runqueue instead of the local one. A thread running out-of-band
> on another CPU is therefore never kicked and keeps running with a
> pending signal.
>
> Check against the local runqueue again.
>
> Fixes: fecf5883ecd3 ("evl/sched: get rid of this_evl_rq_thread()")
> Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
> ---
>  kernel/evl/thread.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/evl/thread.c b/kernel/evl/thread.c
> index 2aa07b494d40..94d073a1b7e7 100644
> --- a/kernel/evl/thread.c
> +++ b/kernel/evl/thread.c
> @@ -1323,7 +1323,7 @@ void evl_kick_thread(struct evl_thread *thread)
>  	 * stage demotion took place.
>  	 */
>  	if (thread->state & EVL_T_USER) {
> -		if (rq->curr != thread)
> +		if (this_evl_rq()->curr != thread)
>  			dovetail_send_mayday(p);
>  
>  		if (thread->state & EVL_THREAD_LAZY_MASK)
>
> base-commit: a3ad77d7ba3eac8a73f64026272747c01dd84fc6

Merged, thanks (upstreaming soon).

-- 
Philippe.

      reply	other threads:[~2026-11-11  8:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 18:11 [PATCH evl] evl/thread: fix lost kick of a thread running on a remote CPU Tobias Schaffner
2026-11-11  8:32 ` Philippe Gerum [this message]

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=87fqx76a5e.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=tobias.schaffner@siemens.com \
    --cc=xenomai@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.