diff options
| author | 2026-09-15 08:22:03 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:42 -0400 | |
| commit | a7c8e96d1b9fa327cbdea514d047c8295b28d49a (patch) | |
| tree | 8e32326f3e766156885650dfdef83986610d0e51 /scripts/Makefile.thinlto | |
| parent | NFSv4/flexfiles: allocate the per-mirror stripe array with kvzalloc_objs (diff) | |
NFSv4/pnfs: Free the netid when draining a data-server address list
nfs4_pnfs_ds_addr_free() releases all three of an address entry's
allocations, but the four sites that drain a decoded list before it
reaches a data server open-code the loop and free only da_remotestr and
the entry, leaking da_netid. Both layout drivers drain that list when
nfs4_pnfs_ds_add() returned a data server already in the cache, and
again on their error exits.
Lift the drain into nfs4_pnfs_ds_addr_list_free() so an address list has
one owner. A striping mount reaches the cached case on nearly every
GETDEVICEINFO, since many deviceIDs name the same data servers.
Fixes: 4be78d26810b ("NFSv4/pNFS: Store the transport type in struct nfs4_pnfs_ds_addr")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-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
