diff options
| author | 2026-09-04 08:56:07 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:41 -0400 | |
| commit | b5d62810ca21e8e587f2ebc9b78dcc1609f42e0c (patch) | |
| tree | 4fbb82d833722855581d7e8d1aab83ca55230700 /scripts/Makefile.thinlto | |
| parent | NFSv4.1/pnfs: remember when a server needs a larger LAYOUTGET reply buffer (diff) | |
NFSv4/flexfiles: allocate the per-mirror stripe array with kvzalloc_objs
Each mirror's stripe array is a single contiguous allocation of
dss_count * sizeof(struct nfs4_ff_layout_ds_stripe) -- roughly 300
bytes per stripe. With the LAYOUTGET reply buffer no longer capped at
a single page, a wide striped layout can push this well past the
high-order allocation comfort zone (a 2048-stripe mirror is a ~600KB
contiguous allocation) where it can fail under memory fragmentation.
Use kvzalloc_objs() so wide stripe arrays fall back to vmalloc. Note
the vmalloc fallback is unavailable when the pageio path allocates
under memalloc_noio (swap over pNFS); that case simply behaves as
before.
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
