usr/src/uts/common/fs/zfs/metaslab.c
/*
 * Wait for any in-progress metaslab loads to complete.
 */
Wait for any in-progress metaslab loads to complete.
Wait for any in - progress metaslab loads to complete .
void
metaslab_load_wait(metaslab_t *msp)
{
	ASSERT(MUTEX_HELD(&msp->ms_lock));
	while (msp->ms_loading) {
		ASSERT(!msp->ms_loaded);
		cv_wait(&msp->ms_load_cv, &msp->ms_lock);
	}
}
void metaslab_load_wait ( metaslab_t * msp ) { ASSERT ( MUTEX_HELD ( & msp -> ms_lock ) ) ; while ( msp -> ms_loading ) { ASSERT ( ! msp -> ms_loaded ) ; cv_wait ( & msp -> ms_load_cv , & msp -> ms_lock ) ; } }
Wait for any in-progress metaslab loads to complete.
Wait for any in - progress metaslab loads to complete .