Re: [ndctl PATCH] test/btt-stress.sh: add stress test for BTT lane race
Alison Schofield <[email protected]>
| Newsgroups | dev.linux.lists.nvdimm |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Apr 24, 2026 at 04:36:31PM -0700, Alison Schofield wrote: > The btt-check unit test exposed data mismatches during BTT I/O in a > CI environment, indicating a race in lane acquisition that can lead > to silent data corruption. The failure was not reliably reproduced > under typical test conditions. > > Add a targeted stress test that repeatedly writes, reads, and verifies > data on a BTT namespace while background readers contend for BTT lanes > and CPU loops increase preemption pressure. > > The test reproduces the race on an unfixed kernel and passes with the > lane ownership fix applied. Applied to pending for NDCTL v86 https://github.com/pmem/ndctl/commits/pending/ > > Assisted-By: Claude Sonnet 4.5 > Signed-off-by: Alison Schofield <[email protected]> > --- > test/btt-stress.sh | 111 +++++++++++++++++++++++++++++++++++++++++++++ > test/meson.build | 2 + > 2 files changed, 113 insertions(+) snip