Lines Matching refs:scl_writer
461 scl->scl_writer = NULL; in spa_config_lock_init()
474 ASSERT(scl->scl_writer == NULL); in spa_config_lock_destroy()
489 if (scl->scl_writer || scl->scl_write_wanted) { in spa_config_tryenter()
496 ASSERT(scl->scl_writer != curthread); in spa_config_tryenter()
503 scl->scl_writer = curthread; in spa_config_tryenter()
522 if (scl->scl_writer == curthread) in spa_config_enter_impl()
528 while (scl->scl_writer || in spa_config_enter_impl()
533 ASSERT(scl->scl_writer != curthread); in spa_config_enter_impl()
539 scl->scl_writer = curthread; in spa_config_enter_impl()
579 ASSERT(scl->scl_writer == NULL || in spa_config_exit()
580 scl->scl_writer == curthread); in spa_config_exit()
581 scl->scl_writer = NULL; /* OK in either case */ in spa_config_exit()
598 (rw == RW_WRITER && scl->scl_writer == curthread)) in spa_config_held()