Lines Matching refs:locks
481 spa_config_tryenter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_tryenter() argument
485 if (!(locks & (1 << i))) in spa_config_tryenter()
491 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
499 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
512 spa_config_enter_impl(spa_t *spa, int locks, const void *tag, krw_t rw, in spa_config_enter_impl() argument
524 if (!(locks & (1 << i))) in spa_config_enter_impl()
544 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter_impl()
548 spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter() argument
550 spa_config_enter_impl(spa, locks, tag, rw, 0); in spa_config_enter()
563 spa_config_enter_mmp(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter_mmp() argument
565 spa_config_enter_impl(spa, locks, tag, rw, 1); in spa_config_enter_mmp()
569 spa_config_exit(spa_t *spa, int locks, const void *tag) in spa_config_exit() argument
574 if (!(locks & (1 << i))) in spa_config_exit()
589 spa_config_held(spa_t *spa, int locks, krw_t rw) in spa_config_held() argument
595 if (!(locks & (1 << i))) in spa_config_held()
1386 int locks = SCL_STATE_ALL | oplocks; in spa_vdev_state_enter() local
1398 int low = locks & ~(SCL_ZIO - 1); in spa_vdev_state_enter()
1399 int high = locks & ~low; in spa_vdev_state_enter()
1405 spa_config_enter(spa, locks, spa, RW_WRITER); in spa_vdev_state_enter()
1407 spa->spa_vdev_locks = locks; in spa_vdev_state_enter()