diff options
| author | 2026-09-15 08:22:21 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:45 -0400 | |
| commit | 14286f49f0b87129656acc54a825a64b8c9744b3 (patch) | |
| tree | f257ddde6fb4d22cf4295fb41122bb7baafd932a /scripts/Makefile.thinlto | |
| parent | NFSv4/pnfs: Recover revoked layouts on a deleted deviceID (diff) | |
NFSv4/pnfs: Confirm a deviceID delete via GETDEVICEINFO
RFC 8881 Section 18.40.4: if TEST_STATEID says at least one layout
referring to the deleted deviceID is still valid, the delete cannot
be trusted -- verify it with GETDEVICEINFO. The device really being
gone while the server also considers a referring layout valid means
the server is faulty; recover by re-establishing the client ID and
drop the cached device. Any other answer -- including the device
existing, i.e. an erroneous DELETE -- keeps the cached device and
the layout intact.
Re-establishing the client ID is nfs4_reset_all_state(), which sets
NFS4CLNT_PURGE_STATE so the state manager runs nfs4_purge_lease():
a fresh EXCHANGE_ID, then state reclaim with no grace period. The
grace-less reclaim is the point -- the server has not rebooted, so
there is nothing to reclaim under CLAIM_PREVIOUS, and the new client
ID orphans the state held under the old one. The obvious-looking
nfs4_schedule_lease_recovery() is not the right call here: it sets
NFS4CLNT_CHECK_LEASE, which the state manager turns into a lease
renewal, and on a healthy session -- which this one is, the server
having just answered TEST_STATEID and GETDEVICEINFO on it -- that
renewal succeeds and no EXCHANGE_ID is ever sent.
This is the only path on which a device notification can escalate to
a full client-ID reset, and every open, lock and delegation on the
client is reclaimed as a result. From userspace that is
indistinguishable from a spontaneous lease expiry, so the escalation
is announced with a rate-limited warning naming the server.
The raw-status probe calls nfs4_proc_getdeviceinfo() directly
because nfs4_get_device_info() swallows the RPC status and cannot
distinguish NFS4ERR_NOENT from a transient failure. A one-page
reply buffer is enough: a device too large for it fails with
something other than -ENOENT, which still proves existence.
Still nothing enqueues suspects; 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
