mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
bee314a798
At shutdown time, we drain all of the zevents and set the ZEVENT_SHUTDOWN flag. On FreeBSD, we may end up calling zfs_zevent_destroy() after the zevent_lock has been destroyed while the sysevent thread is winding down; we observe ESHUTDOWN, then back out. Events have already been drained, so just inline the kmem_free call in sysevent_worker() to avoid the race, and document the assumption that zfs_zevent_destroy doesn't do anything else useful at that point. This fixes a panic that can occur at module unload time. Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Kyle Evans <kevans@FreeBSD.org> Closes #13220 |
||
---|---|---|
.. | ||
acl_common.c | ||
callb.c | ||
list.c | ||
sha224.h | ||
sha256.h | ||
sha256c.c | ||
sha384.h | ||
sha512.h | ||
sha512c.c | ||
sha512t.h | ||
spl_acl.c | ||
spl_atomic.c | ||
spl_cmn_err.c | ||
spl_dtrace.c | ||
spl_kmem.c | ||
spl_kstat.c | ||
spl_misc.c | ||
spl_policy.c | ||
spl_procfs_list.c | ||
spl_string.c | ||
spl_sunddi.c | ||
spl_sysevent.c | ||
spl_taskq.c | ||
spl_uio.c | ||
spl_vfs.c | ||
spl_vm.c | ||
spl_zlib.c | ||
spl_zone.c |