From: Oleg Nesterov <oleg@redhat.com>
To: Mateusz Guzik <mjguzik@gmail.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] signal: avoid clearing TIF_SIGPENDING in recalc_sigpending() if unset
Date: Mon, 3 Mar 2025 17:52:27 +0100 [thread overview]
Message-ID: <20250303165226.GB9870@redhat.com> (raw)
In-Reply-To: <20250303134908.423242-1-mjguzik@gmail.com>
On 03/03, Mateusz Guzik wrote:
>
> void recalc_sigpending(void)
> {
> - if (!recalc_sigpending_tsk(current) && !freezing(current))
> - clear_thread_flag(TIF_SIGPENDING);
> -
> + if (!recalc_sigpending_tsk(current) && !freezing(current)) {
> + if (test_thread_flag(TIF_SIGPENDING))
> + clear_thread_flag(TIF_SIGPENDING);
> + }
Acked-by: Oleg Nesterov <oleg@redhat.com>
next prev parent reply other threads:[~2025-03-03 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-03 13:49 [PATCH] signal: avoid clearing TIF_SIGPENDING in recalc_sigpending() if unset Mateusz Guzik
2025-03-03 16:52 ` Oleg Nesterov [this message]
2025-03-03 22:24 ` Andrew Morton
2025-03-03 22:36 ` Mateusz Guzik
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=20250303165226.GB9870@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjguzik@gmail.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