From: Luis Chamberlain <mcgrof@kernel.org>
To: willy@infradead.org, akpm@linux-foundation.org
Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, hare@suse.com,
p.raghav@samsung.com, da.gomez@samsung.com, djwong@kernel.org,
david@fromorbit.com, mcgrof@kernel.org
Subject: [PATCH v2 0/2] test_xarray: advanced API multi-index tests
Date: Wed, 31 Jan 2024 14:51:23 -0800 [thread overview]
Message-ID: <20240131225125.1370598-1-mcgrof@kernel.org> (raw)
This is a respin of the test_xarray multi-index tests [0] which use and
demonstrate the advanced API which is used by the page cache. This should
let folks more easily follow how we use multi-index to support for example
a min order later in the page cache. It also lets us grow the selftests to
mimic more of what we do in the page cache.
Changes since v1:
- Fixed RCU stall, the issue was the misssing RCU locks when fetching
an entry, so we now add test_get_entry() which mimics filemap_get_entry()
- Provide a bit more comments
- Check for alignment on the index to the order on
check_xa_multi_store_adv_add()
- Use a helper check_xa_multi_store_adv_del_entry() to mimic what
we do in page_cache_delete()
Changes since RFC:
- Moved out from tmpfs large folio patches [1] so to keep these patches
separate
- Update cmpxchg test to include another entry at 1 << order that
'keeps' the node around and order information.
- Update cmpxchg test to verify the entries and order in all tied
indexes.
- Drop previous Luis Chamberlain's review as changes are significant
from the RFC.
[0] https://lkml.kernel.org/r/20231104005747.1389762-1-da.gomez@samsung.com
[1] https://lore.kernel.org/all/20231028211518.3424020-1-da.gomez@samsung.com/
Daniel Gomez (1):
XArray: add cmpxchg order test
Luis Chamberlain (1):
test_xarray: add tests for advanced multi-index use
lib/test_xarray.c | 218 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 218 insertions(+)
--
2.43.0
next reply other threads:[~2024-01-31 22:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 22:51 Luis Chamberlain [this message]
2024-01-31 22:51 ` [PATCH v2 1/2] test_xarray: add tests for advanced multi-index use Luis Chamberlain
2024-01-31 22:51 ` [PATCH v2 2/2] XArray: add cmpxchg order test Luis Chamberlain
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=20240131225125.1370598-1-mcgrof@kernel.org \
--to=mcgrof@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=da.gomez@samsung.com \
--cc=david@fromorbit.com \
--cc=djwong@kernel.org \
--cc=hare@suse.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=p.raghav@samsung.com \
--cc=willy@infradead.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 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.