]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't set GELI UMA zone as UMA_ZONE_NOFREE.
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 1 Oct 2021 17:24:50 +0000 (10:24 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 1 Oct 2021 17:31:17 +0000 (10:31 -0700)
commitb984d153e057b7879632b8e6015a05ce3f177580
tree4321108dfadd60187308780a244a1eb44b050db9
parent4b3da659bf62b0f5306b5acee9add41b84361498
Don't set GELI UMA zone as UMA_ZONE_NOFREE.

That fixes memory leak on last GELI provider destroyed, introduced
in 2dbc9a388ee. This patch was originally developed late 2019 and
the flag was necessary to prevent zone drainage under memory pressure.
Today, with f09cbea31a3f the UMA is fixed not to drain into reserves.

Discussed with: jtl, markj
Fixes: 2dbc9a388ee
PR: 258787
sys/geom/eli/g_eli.c