Lines Matching refs:zv_state_lock
49 * zvol_state_list. The zv->zv_state_lock is used to protect the contents
60 * - take zv_state_lock to protect zvol_state_t
131 * If found, return with zv_suspend_lock and zv_state_lock taken, otherwise,
133 * before zv_state_lock. The mode argument indicates the mode (including none)
145 mutex_enter(&zv->zv_state_lock);
154 mutex_exit(&zv->zv_state_lock);
156 mutex_enter(&zv->zv_state_lock);
168 mutex_exit(&zv->zv_state_lock);
177 * If found, return with zv_suspend_lock and zv_state_lock taken, otherwise,
179 * before zv_state_lock. The mode argument indicates the mode (including none)
327 ASSERT(zv == NULL || (MUTEX_HELD(&zv->zv_state_lock) &&
336 mutex_exit(&zv->zv_state_lock);
369 mutex_exit(&zv->zv_state_lock);
429 ASSERT(MUTEX_HELD(&zv->zv_state_lock));
433 mutex_exit(&zv->zv_state_lock);
453 mutex_exit(&zv->zv_state_lock);
775 ASSERT(MUTEX_HELD(&zv->zv_state_lock));
814 ASSERT(MUTEX_HELD(&zv->zv_state_lock) &&
860 ASSERT(MUTEX_HELD(&zv->zv_state_lock));
869 * do not hold zv_state_lock across suspend/resume to
872 mutex_exit(&zv->zv_state_lock);
885 mutex_enter(&zv->zv_state_lock);
896 mutex_exit(&zv->zv_state_lock);
918 ASSERT(MUTEX_HELD(&zv->zv_state_lock));
968 ASSERT(MUTEX_HELD(&zv->zv_state_lock));
1219 mutex_enter(&zv->zv_state_lock);
1225 * By holding zv_state_lock here, we guarantee that no
1232 mutex_exit(&zv->zv_state_lock);
1244 /* Drop zv_state_lock before zvol_free() */
1245 mutex_exit(&zv->zv_state_lock);
1253 mutex_exit(&zv->zv_state_lock);
1279 mutex_enter(&zv->zv_state_lock);
1282 * By holding zv_state_lock here, we guarantee that no
1289 mutex_exit(&zv->zv_state_lock);
1295 mutex_exit(&zv->zv_state_lock);
1298 mutex_exit(&zv->zv_state_lock);
1329 mutex_enter(&zv->zv_state_lock);
1343 mutex_exit(&zv->zv_state_lock);
1411 mutex_exit(&zv->zv_state_lock);