From: Josh Law <hlcj1234567@gmail.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
Josh Law <objecting@objecting.org>, Yi Liu <yi.l.liu@intel.com>,
Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: [PATCH] lib/idr: fix ida_find_first_range() missing IDs across chunk boundaries
Date: Fri, 6 Mar 2026 20:25:42 +0000 [thread overview]
Message-ID: <64ea7b4d-1d55-4d9e-8fef-396613e8bc10@gmail.com> (raw)
In-Reply-To: <aas14HsY7dj6jTDZ@casper.infradead.org>
6 Mar 2026 20:15:29 Matthew Wilcox <willy@infradead.org>:
> On Fri, Mar 06, 2026 at 08:03:19PM +0000, Josh Law wrote:
>> ida_find_first_range() only examines the first XArray entry returned by
>> xa_find(). If that entry does not contain a set bit at or above the
>> requested offset, the function returns -ENOENT without searching
>> subsequent entries, even though later chunks may contain allocated IDs
>> within the requested range.
>
> Can I trouble you to add a test to lib/test_ida.c to demonstrate the
> problem (and that it's fixed, and that it doesn't come back)?
>
> Also this needs a Fixes: line. I suggest 7fe6b987166b is the commit
> it's fixing. Add Jason and Yi Liu as well as the author and committer
> of that patch.
Okay, you mind if I put the modifications to test_ida.c on the same commit? Or would you like it on another commit
V/R
Josh law
next prev parent reply other threads:[~2026-03-06 20:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 20:03 Josh Law
2026-03-06 20:15 ` Matthew Wilcox
2026-03-06 20:25 ` Josh Law [this message]
2026-03-06 20:29 ` Matthew Wilcox
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=64ea7b4d-1d55-4d9e-8fef-396613e8bc10@gmail.com \
--to=hlcj1234567@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=jgg@nvidia.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=objecting@objecting.org \
--cc=willy@infradead.org \
--cc=yi.l.liu@intel.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