All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuan-Wei Chiu <visitorckw@gmail.com>
To: song@kernel.org, ast@kernel.org, daniel@iogearbox.net,
	andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
	kpsingh@kernel.org, matt@bobrowski.net, rostedt@goodmis.org,
	mhiramat@kernel.org, akpm@linux-foundation.org
Cc: jolsa@kernel.org, ihor.solodrai@linux.dev, martin.lau@linux.dev,
	yonghong.song@linux.dev, emil@etsalapatis.com,
	mathieu.desnoyers@efficios.com, hch@infradead.org,
	jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com,
	marscheng@google.com, linux-kernel@vger.kernel.org,
	bpf@vger.kernel.org
Subject: Re: [PATCH v2 0/2] lib/sort: Clean up sort_nonatomic() and sort_r_nonatomic()
Date: Tue, 6 Oct 2026 02:59:01 +0800	[thread overview]
Message-ID: <asPzdeas0ZP2Oeis@google.com> (raw)
In-Reply-To: <20260910165222.1186628-1-visitorckw@gmail.com>

On Thu, Sep 10, 2026 at 04:52:19PM +0000, Kuan-Wei Chiu wrote:
> kernel/trace/bpf_trace.c is the sole remaining user of
> sort_r_nonatomic(). Switch check_dup_ids() to sort_r() to match
> bpf_kprobe_multi_link_attach() in the same file, which has safely
> used sort_r() under the same limit (1U << 20) for 4 years.
> 
> With no users left in the tree, remove the unused sort_nonatomic() and
> sort_r_nonatomic() APIs. This drops the __sort_r() wrapper and
> eliminates the may_schedule branch and cond_resched() from the inner
> sorting loop.

Anything else I need to do for this patchset to land?

Regards,
Kuan-Wei

> ---
> Changes in v2:
> - Drop the already accepted arm-smmu-v3 patch.
> - Convert bpf_trace.c to sort_r() instead.
> 
> Kuan-Wei Chiu (2):
>   bpf: Replace sort_r_nonatomic() with sort_r() in check_dup_ids()
>   Revert "lib/sort.c: add _nonatomic() variants with cond_resched()"
> 
>  include/linux/sort.h     |  11 ----
>  kernel/trace/bpf_trace.c |   2 +-
>  lib/sort.c               | 110 +++++++++++----------------------------
>  3 files changed, 32 insertions(+), 91 deletions(-)
> 
> -- 
> 2.55.0.1003.g10538fe699-goog
> 

      parent reply	other threads:[~2026-10-05 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-10 16:52 [PATCH v2 0/2] lib/sort: Clean up sort_nonatomic() and sort_r_nonatomic() Kuan-Wei Chiu
2026-09-10 16:52 ` [PATCH v2 1/2] bpf: Replace sort_r_nonatomic() with sort_r() in check_dup_ids() Kuan-Wei Chiu
2026-09-11  8:36   ` Jiri Olsa
2026-09-10 16:52 ` [PATCH v2 2/2] Revert "lib/sort.c: add _nonatomic() variants with cond_resched()" Kuan-Wei Chiu
2026-10-05 18:59 ` Kuan-Wei Chiu [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=asPzdeas0ZP2Oeis@google.com \
    --to=visitorckw@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=eleanor15x@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=hch@infradead.org \
    --cc=ihor.solodrai@linux.dev \
    --cc=jolsa@kernel.org \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=kpsingh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marscheng@google.com \
    --cc=martin.lau@linux.dev \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=matt@bobrowski.net \
    --cc=memxor@gmail.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=song@kernel.org \
    --cc=yonghong.song@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.