freebsd-dev/sys/cddl/contrib/opensolaris
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
..
common MFV r323530,r323533,r323534: 7431 ZFS Channel Programs, and followups 2017-10-01 16:11:07 +00:00
uts remove spa_sync_on assert from spa_async_thread_vd 2017-10-19 16:36:07 +00:00
OPENSOLARIS.LICENSE