freebsd-dev/sys/cddl
Andriy Gapon 13bacc7144 remove spa_sync_on assert from spa_async_thread_vd
Unlike spa_async_thread that can get started only from spa_sync()
spa_async_thread_vd can get started from other contexts.
Additionally, spa_async_thread_vd does not really depend on
spa sync being enabled.

The incorrect assert could be triggered by importing a pool in the
read-only mode and then disconnecting one of its disks.
In this case spa_sync_on was false because the pool was read-only
and spa_async_thread_vd was started to handle SPA_ASYNC_REMOVE event.

Note: spa_async_thread_vd() currently exists only in FreeBSD, it was
split out of spa_async_thread() in r253990.

Discussed with:	mav
MFC after:	2 weeks
2017-10-19 16:36:07 +00:00
..
boot/zfs loader should support large_dnode 2017-09-12 13:45:04 +00:00
compat/opensolaris illumos mutex_init: use SX_NEW instead of bzero 2017-10-09 07:44:09 +00:00
contrib/opensolaris remove spa_sync_on assert from spa_async_thread_vd 2017-10-19 16:36:07 +00:00
dev Use C99 initializers for DTrace provider methods. 2017-09-27 17:46:38 +00:00