Re: [EXTERNAL] [PATCH v2 7/7] ceph: add manual reset selftests and validation harness

From: Viacheslav Dubeyko

Date: Fri Apr 17 2026 - 14:48:40 EST


On Wed, 2026-04-15 at 17:00 +0000, Alex Markuze wrote:
> Add single-client selftests and a validation wrapper for manual
> client reset.
>
> The test set covers reset stress under concurrent metadata
> activity together with targeted corner cases for overlap,
> dirty-state handling, stale lock behavior, and unmount while reset
> is active. A validation wrapper runs the individual stages with
> watchdog timeouts and captures the final reset status for post-run
> checks.
>
> The stress validator checks failure_count in addition to
> last_errno so that transient mid-run reset failures are caught
> even when a later reset succeeds.
>
> Keep the test scope intentionally focused on the shipped
> single-client reset behavior so the series includes a practical
> regression signal for the final design.
>
> Signed-off-by: Alex Markuze <amarkuze@xxxxxxxxxx>
> ---
> MAINTAINERS | 1 +
> tools/testing/selftests/Makefile | 1 +
> .../selftests/filesystems/ceph/Makefile | 7 +
> .../selftests/filesystems/ceph/README.md | 84 +++
> .../filesystems/ceph/reset_corner_cases.sh | 646 ++++++++++++++++
> .../filesystems/ceph/reset_stress.sh | 694 ++++++++++++++++++
> .../filesystems/ceph/run_validation.sh | 350 +++++++++
> .../selftests/filesystems/ceph/settings | 1 +
> .../filesystems/ceph/validate_consistency.py | 297 ++++++++
> 9 files changed, 2081 insertions(+)
> create mode 100644 tools/testing/selftests/filesystems/ceph/Makefile
> create mode 100644 tools/testing/selftests/filesystems/ceph/README.md
> create mode 100755 tools/testing/selftests/filesystems/ceph/reset_corner_cases.sh
> create mode 100755 tools/testing/selftests/filesystems/ceph/reset_stress.sh
> create mode 100755 tools/testing/selftests/filesystems/ceph/run_validation.sh
> create mode 100644 tools/testing/selftests/filesystems/ceph/settings
> create mode 100755 tools/testing/selftests/filesystems/ceph/validate_consistency.py
>

The patch is really huge. I really like that we would like to add the selftests
for CephFS kernel client. But it's impossible to review it. It needs to be split
on several patches.

Thanks,
Slava.