diff options
| author | 2026-09-15 08:22:22 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:45 -0400 | |
| commit | db485e06253e355f3a2fd1feb94f14bf7ec360ff (patch) | |
| tree | 4d0cd7032c13f332f38cb8f9d9ad14955c32722e /scripts/Makefile.thinlto | |
| parent | NFSv4/pnfs: Confirm a deviceID delete via GETDEVICEINFO (diff) | |
NFSv4/pnfs: Dispatch CB_NOTIFY_DEVICEID DELETE to race recovery
Turn on the RFC 8881 Section 18.40.4 DELETE handling: a DELETE for a
deviceID that no live layout references keeps today's cheap behavior
(drop the cached device, no state-manager wake). A DELETE for a
deviceID that live layouts still reference is deferred to the state
manager, which TEST_STATEIDs the referring layouts, recovers revoked
ones, and confirms or refutes the delete with GETDEVICEINFO.
The deferred case no longer unhashes the device immediately: if the
recovery concludes the DELETE was erroneous (the deviceID still
exists and a referring layout is still valid), the client keeps
using the cached device.
Re-arm the state manager afterwards, as the delegation return above it
does. The recovery issues synchronous RPCs, and a manager thread that
starts and exits while it runs clears NFS4CLNT_RUN_MANAGER on its way
out.
Bump the deviceid change epoch for both notification types rather
than only for CHANGE. A GETDEVICEINFO whose reply is already in
flight can otherwise re-cache a device the notification has just
invalidated; that is as true of a delete as of a change, and Section
18.40.4 opens by describing the race for the delete case.
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
