diff options
| author | 2026-09-15 08:22:15 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:44 -0400 | |
| commit | d599d14a2d738cda094f814ea485cc39949c7ea8 (patch) | |
| tree | e7b2dca73460822ad0fefea84afaa5d4904c92c1 /scripts/Makefile.thinlto | |
| parent | pNFS: Add a reresolve_deviceid layout driver hook (diff) | |
NFSv4/flexfiles: Implement in-place device re-resolve on CHANGE
Implement the reresolve_deviceid hook: walk the layout's mirrors and,
for every stripe whose raw deviceid matches the changed one, exchange
the pinned device node out for NULL. In-flight I/O completes on the old
node through its own reference; the next I/O to the stripe re-resolves
via ff_layout_get_mirror_ds() and picks up the server's new mapping
with a fresh GETDEVICEINFO. The un-pinned references are handed back
on the walker's list to be put outside the locks.
Matching uses the raw deviceid decoded from the layout (dss[].devid), so
a stripe that was never resolved, or already exchanged, is left alone.
A stripe whose resolution previously failed holds an ERR_PTR sentinel
rather than a node; that is cleared too, so the stripe retries
GETDEVICEINFO on its next I/O. Nothing dispatches CHANGE to the walker
yet: no behavior change.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
