From: Philippe Gerum <rpm@xenomai.org>
To: Tobias Schaffner <tobias.schaffner@siemens.com>
Cc: xenomai@lists.linux.dev
Subject: Re: [PATCH linux-evl] evl/latmus: handle ERESTARTSYS from evl_wait_flag()
Date: Wed, 25 Mar 2026 16:12:05 +0100 [thread overview]
Message-ID: <87v7ekhrju.fsf@xenomai.org> (raw)
In-Reply-To: <20260320211822.2151049-1-tobias.schaffner@siemens.com> (Tobias Schaffner's message of "Fri, 20 Mar 2026 22:18:22 +0100")
Tobias Schaffner <tobias.schaffner@siemens.com> writes:
> evl_sleep_schedule() returns -ERESTARTSYS when an EVL thread is kicked
> due to a pending Linux signal (e.g. SIGALRM from the -T timeout).
> run_measurement() only checked for -EINTR, causing the histogram data
> to be discarded instead of copied to userspace on timed runs.
>
> Fixes: 6f1edfe3b73e ("evl/syscall: fix restartable syscall handling")
>
> Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
> ---
> drivers/evl/latmus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/evl/latmus.c b/drivers/evl/latmus.c
> index 0303e21d066b..9a0295044443 100644
> --- a/drivers/evl/latmus.c
> +++ b/drivers/evl/latmus.c
> @@ -970,7 +970,7 @@ static int run_measurement(struct latmus_runner *runner,
> return -EFAULT;
>
> ret = measure_continously(runner);
> - if (ret != -EINTR)
> + if (ret != -EINTR && ret != -ERESTARTSYS)
> return ret;
>
> /*
Merged, thanks.
--
Philippe.
prev parent reply other threads:[~2026-03-25 15:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 21:18 [PATCH linux-evl] evl/latmus: handle ERESTARTSYS from evl_wait_flag() Tobias Schaffner
2026-03-25 15:12 ` 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=87v7ekhrju.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox