diff options
| author | 2026-09-04 08:56:06 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:41 -0400 | |
| commit | 0e180168d597942ea4acb47599d8682830346a67 (patch) | |
| tree | 750995c5fc72efbeb0ec852b3416b887f0d80aa0 /scripts/Makefile.thinlto | |
| parent | NFSv4.1/pnfs: treat an oversized LAYOUTGET reply as -EMSGSIZE (diff) | |
NFSv4.1/pnfs: remember when a server needs a larger LAYOUTGET reply buffer
When a LAYOUTGET only succeeds after escalating the reply buffer, every
layout fetched from that server is likely to need the larger buffer:
remember the escalated size on the nfs_server and use it as the floor
for subsequent LAYOUTGET reply buffers, skipping the doomed attempt at
the layout driver's default size.
This also lets the LAYOUTGET attached to OPEN benefit: the lgopen path
is best-effort with no retry of its own, so without the learned size
it would fail with NFS4ERR_TOOSMALL at every open against a server
handing out wide layouts, and layouts would only ever be acquired by
the I/O path's retry.
The field is a hint: reads and writes are racy by design, the value
only ever grows toward the session's maximum response size, and a
stale-low read merely costs one escalation round trip.
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
