mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bradley Morgan <bradley.morgan@linux.dev>
To: Oleg Nesterov <oleg@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Christian Brauner <brauner@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>,
	Andrea Calabrese <andrea.calabrese@amarulasolutions.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] signal: simplify next_signal()
Date: Wed, 02 Dec 2026 16:01:01 +0000	[thread overview]
Message-ID: <89A26693-0D11-47A3-8F52-371A25E47F36@linux.dev> (raw)
In-Reply-To: <aw_npjc1o6_J7-Kd@redhat.com>

On 2 December 2026 09:40:54 GMT, Oleg Nesterov <oleg@redhat.com> wrote:
>On 12/01, Bradley Morgan wrote:
>>
>> _NSIG_WORDS is a compile time constant, so the compiler unrolls the
>> loop anyway and the switch is just duplicate code. Same thing commit
>> b7a8d7589a632 ("kernel: refactor: shorten has_pending_signals")
>> removed.
>
>Looks correct at first glance, I'll recheck...

cheers.

>
>But let me ask... Since you simplify this function anyway, perhaps
>__ffs(x) make more sense than ffz(~x) ?


could this be follow up? Or do you want a V2 with this.

>
>Oleg.
>
>

--- Thanks!

      reply	other threads:[~2026-12-02 16:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 20:31 Bradley Morgan
2026-12-02  9:40 ` Oleg Nesterov
2026-12-02 16:01   ` Bradley Morgan [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=89A26693-0D11-47A3-8F52-371A25E47F36@linux.dev \
    --to=bradley.morgan@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=andrea.calabrese@amarulasolutions.com \
    --cc=brauner@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=tglx@kernel.org \
    /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®