aboutsummaryrefslogtreecommitdiff
path: root/sys/net/altq/altq_subr.c
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2022-01-13 15:50:40 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2022-01-20 19:55:04 +0000
commit2077f85a63f2855fd0e1658d3655b60302db6ebd (patch)
treed03e4806d3000d7ced6d5c2493d7fc432c7347f3 /sys/net/altq/altq_subr.c
parent0ff24a520a64a3eda4533b949d015a820afebca7 (diff)
downloadsrc-2077f85a63f2855fd0e1658d3655b60302db6ebd.tar.gz
src-2077f85a63f2855fd0e1658d3655b60302db6ebd.zip
Free UMA zones when a pass(4) instance goes away.
If the UMA zones are not freed, we get warnings about re-using the sysctl variables associated with the UMA zones, and we're leaking the other memory associated with the zone structures. e.g.: sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.size)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.flags)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.bucket_size)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.bucket_size_max)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.keg.name)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.keg.rsize)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.keg.ppera)! sysctl_warn_reuse: can't re-use a leaf (vm.uma.pass44.keg.ipers)! Also, correctly clear the PASS_FLAG_ZONE_INPROG flag in passcreatezone(). The way it was previously done, it would have had set the flag and cleared all other flags that were set at that point. Sponsored by: Spectra Logic (cherry picked from commit ca2a7262df5ec5fd07d4ac61738947f48c9cd7f2)
Diffstat (limited to 'sys/net/altq/altq_subr.c')
0 files changed, 0 insertions, 0 deletions