mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Gomez <da.gomez@samsung.com>
To: "willy@infradead.org" <willy@infradead.org>
Cc: "gost.dev@samsung.com" <gost.dev@samsung.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Pankaj Raghav <p.raghav@samsung.com>,
	"mcgrof@kernel.org" <mcgrof@kernel.org>,
	Daniel Gomez <da.gomez@samsung.com>
Subject: [PATCH 0/2] XArray multi-index tests
Date: Sat, 4 Nov 2023 00:57:49 +0000	[thread overview]
Message-ID: <20231104005747.1389762-1-da.gomez@samsung.com> (raw)
In-Reply-To: <CGME20231104005750eucas1p11bb8d7b203f8376aacd097a713f35734@eucas1p1.samsung.com>

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/20231028211518.3424020-1-da.gomez@samsung.com/
[2] https://lore.kernel.org/all/ZT68dBiJKNLXLRZA@casper.infradead.org/

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(+)

-- 
2.39.2

       reply	other threads:[~2023-11-04  0:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20231104005750eucas1p11bb8d7b203f8376aacd097a713f35734@eucas1p1.samsung.com>
2023-11-04  0:57 ` Daniel Gomez [this message]
     [not found]   ` <CGME20231104005753eucas1p19e4ec0196f5ea297f59fb86b2a648b53@eucas1p1.samsung.com>
2023-11-04  0:57     ` [PATCH 1/2] test_xarray: add tests for advanced multi-index use Daniel Gomez
2023-11-15 15:02       ` kernel test robot
2023-11-17 20:54         ` Luis Chamberlain
2023-11-17 20:58           ` Matthew Wilcox
2023-11-17 21:01             ` Luis Chamberlain
2024-01-26 19:12               ` Luis Chamberlain
2024-01-26 19:26                 ` Matthew Wilcox
2024-01-26 20:04                   ` Luis Chamberlain
2024-01-26 20:32                     ` Matthew Wilcox
2024-01-31 21:58                       ` Luis Chamberlain
2024-02-15  2:15                       ` Luis Chamberlain
     [not found]   ` <CGME20231104005753eucas1p161414dd7c5eb9cdc6863fb543459c242@eucas1p1.samsung.com>
2023-11-04  0:57     ` [PATCH 2/2] XArray: add cmpxchg order test Daniel Gomez
     [not found]   ` <CGME20231104010041eucas1p2369aea5ef1182bea53989b43ea07049e@eucas1p2.samsung.com>
2023-11-04  1:00     ` [PATCH 0/2] XArray multi-index tests Daniel Gomez

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=20231104005747.1389762-1-da.gomez@samsung.com \
    --to=da.gomez@samsung.com \
    --cc=gost.dev@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.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 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®