freebsd-skq/sys/cddl
Alan Somers cbedc01c9a Fix race condition involving ZFS remove events
When a ZFS drive disappears, ZFS sends a resource.fs.zfs.removed event to
userland. A userland program like zfsd(8) can use that event, for example to
activate a hotspare. The current code contains a race condition: vdev_geom
will sent the sysevent _before_ spa.c would update the vdev's status,
causing userland processes to see pool state that does not reflect the
device removal. This change moves the sysevent to spa.c, closing the race.

Reviewed by:	delphij, Sean Eric Fagan
MFC after:	4 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D4902
2016-01-14 18:19:05 +00:00
..
boot/zfs Fix const conversion warning in lz4_decompress 2016-01-06 20:28:09 +00:00
compat/opensolaris Expose an interface to determine if an ACE is inherited. 2015-09-04 00:14:20 +00:00
contrib/opensolaris Fix race condition involving ZFS remove events 2016-01-14 18:19:05 +00:00
dev Be stricter on which functions we can probe with FBT. We now only check the 2015-12-23 17:54:19 +00:00