diff options
| author | 2026-09-04 08:56:03 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:41 -0400 | |
| commit | fcfcf04e9fb9c93b13dc51932ea995ff279c705f (patch) | |
| tree | 7dcbd11de07ed256dbb260c46a8c8c8c4d766272 /scripts/Makefile.thinlto | |
| parent | NFSv4.1/pnfs: suspend pNFS on NFS4ERR_TOOSMALL from LAYOUTGET (diff) | |
NFSv4.1/pnfs: derive loga_maxcount from the LAYOUTGET reply buffer
The client advertises a fixed PNFS_LAYOUT_MAXSIZE (4096) in
loga_maxcount no matter what reply buffer it actually allocated. The
two only happen to agree for layout drivers that cap
max_layoutget_response at a single page. Block and SCSI layouts
allocate a session-sized reply buffer, yet still tell the server it
must not send more than 4KB of layout: a server whose extent list
encodes larger than a page returns NFS4ERR_TOOSMALL even though the
client has ample room to receive it.
Set loga_maxcount from the size of the page array allocated for the
reply. The client never advertises more than it can receive, and any
future change to the reply buffer sizing automatically carries its
wire advertisement with it.
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
