Skip to content

XArray multi-index tests

Daniel Gomez lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Changes since RFC from the cover letter

* 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.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2test_xarray: add tests for advanced multi-index uselib/test_xarray.c+134 -09 replies
2/2XArray: add cmpxchg order testlib/test_xarray.c+54 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchDaniel Gomez
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] XArray multi-index tests

Add multi-index XArray tests.

Tests were first introduced as part of '[RFC PATCH 00/11] shmem: high order folios support in write path' [1]. I've created this new series with Matthew Wilcox's feedback [2] regarding test 'XArray: add cmpxchg order test'.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

The full node is lost (not only the order) when using xa_cmpxchg with NULL entry. Adding another (FIVE) entry at '1 << order' with the order information does not keep the original node but duplicates it. I'm not sure if that's the intention from the proposal you mentioned in [2] but please, let me know your comments.

Changes since RFC:
* 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.

Daniel

Daniel Gomez (1):
XArray: add cmpxchg order test

Luis Chamberlain (1):
test_xarray: add tests for advanced multi-index use

 lib/test_xarray.c | 188 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 188 insertions(+)
Signature · 1 line
2.39.2