]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: unregister mountroot eventhandler on unload
authorMateusz Guzik <mjguzik@gmail.com>
Fri, 14 Jun 2024 00:49:50 +0000 (02:49 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2024 00:49:50 +0000 (17:49 -0700)
commit121a2d335414fe294c948795ee9406bab966588f
treeff25b7f1ba164d3c90bcefdb671046b83fb1796d
parent20c8bdd85ef4716d5e59d9f6f61347c0e4566750
FreeBSD: unregister mountroot eventhandler on unload

Otherwise if zfs is unloaded and reroot is being used it trips over a
stale pointer.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: Rubicon Communications, LLC ("Netgate")
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #16242
module/os/freebsd/zfs/kmod_core.c