spa_has_pending_synctask
extern boolean_t spa_has_pending_synctask(spa_t *spa);
if (spa_has_pending_synctask(spa)) {