diff options
| author | 2026-09-09 13:11:48 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:46 -0400 | |
| commit | 94dc092b208ad324981caa85fcf8416b905ca593 (patch) | |
| tree | afacd4acf5e356e8059c918fa41d8731b58dd48b /scripts/Makefile.thinlto | |
| parent | NFSv4/flexfiles: report the intended opnum when DS connection setup fails (diff) | |
pNFS: allow layout drivers to cancel I/O to a single device
The ->cancel_io() layout operation cancels all in-flight I/O for a
layout segment that is being returned. When the return is triggered
by the failure of a single mirror instance, cancelling I/O to the
healthy mirrors is both unnecessary and harmful: requests that were
already transmitted cannot be un-sent, and will complete on the data
servers after the layout has been returned.
Give ->cancel_io() a device ID argument identifying the failed device,
and thread it through pnfs_error_mark_layout_for_return() and
pnfs_mark_matching_lsegs_return(). The flexfiles implementation
compares it against the raw device ID from the layout, so that it can
identify the failed mirror instance even when its device ID node was
never instantiated.
A NULL device ID preserves the existing cancel-everything behavior,
and all callers pass NULL for now, so this patch makes no change in
behavior.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Reviewed-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
