]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add manual reset debugfs control and tracepoints
authorAlex Markuze <amarkuze@redhat.com>
Thu, 7 May 2026 08:54:07 +0000 (08:54 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 20 May 2026 00:20:19 +0000 (02:20 +0200)
commitacdd9f8717223b16265aa3ce6ca88951109b3eeb
tree9431c4fa81cfa99150087504c1b4b7e8a15b6579
parent126698fa3cebb505b94b2de97eca1d7d22beea80
ceph: add manual reset debugfs control and tracepoints

Add the debugfs and trace plumbing used to trigger and observe
manual client reset.

The reset interface exposes a trigger file for operator-initiated
reset and a status file for tracking the most recent run.  The
tracepoints record scheduling, completion, and blocked caller
behavior so reset progress can be diagnosed from the client side.

debugfs layout under /sys/kernel/debug/ceph/<client>/reset/:
  trigger - write to initiate a manual reset
  status  - read to see the most recent reset result

The reset directory is cleaned up via debugfs_remove_recursive()
on the parent, so individual file dentries are not stored.

Tracepoints:
  ceph_client_reset_schedule  - reset queued
  ceph_client_reset_complete  - reset finished (success or failure)
  ceph_client_reset_blocked   - caller blocked waiting for reset
  ceph_client_reset_unblocked - caller unblocked after reset

All tracepoints use a null-safe access for monc.auth->global_id
to guard against early-init or late-teardown edge cases.

Signed-off-by: Alex Markuze <amarkuze@redhat.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
fs/ceph/debugfs.c
fs/ceph/mds_client.c
fs/ceph/super.h
include/trace/events/ceph.h