HomeFreeBSD

Plug memory leak in zfsdev_state.

Description

Plug memory leak in zfsdev_state.

On kernel module unload, free all zfsdev state structures, except for
zfsdev_state_listhead, which is statically allocated.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #14824

Details

Provenance
pjdAuthored on May 5 2023, 3:51 PM
GitHub <noreply@github.com>Committed on May 5 2023, 3:51 PM
Parents
rG82ac409acc77: zpool import -m also removing spare and cache when log device is missing
Branches
Unknown
Tags
Unknown

Event Timeline