Home
last modified time | relevance | path

Searched refs:spa_namespace_lock (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dspa_os.c195 mutex_enter(&spa_namespace_lock); in spa_import_rootpool()
206 mutex_exit(&spa_namespace_lock); in spa_import_rootpool()
228 mutex_exit(&spa_namespace_lock); in spa_import_rootpool()
251 mutex_exit(&spa_namespace_lock); in spa_import_rootpool()
261 mutex_exit(&spa_namespace_lock); in spa_import_rootpool()
H A Dzfs_ioctl_os.c110 mutex_enter(&spa_namespace_lock); in zfs_ioc_nextboot()
114 mutex_exit(&spa_namespace_lock); in zfs_ioc_nextboot()
H A Dzvol_os.c292 if (!mutex_owned(&spa_namespace_lock)) { in zvol_geom_open()
293 if (!mutex_tryenter(&spa_namespace_lock)) { in zvol_geom_open()
305 mutex_exit(&spa_namespace_lock); in zvol_geom_open()
990 if (!mutex_owned(&spa_namespace_lock)) { in zvol_cdev_open()
991 if (!mutex_tryenter(&spa_namespace_lock)) { in zvol_cdev_open()
1003 mutex_exit(&spa_namespace_lock); in zvol_cdev_open()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_misc.c240 kmutex_t spa_namespace_lock; variable
622 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_lookup()
647 cv_wait(&spa_namespace_cv, &spa_namespace_lock); in spa_lookup()
699 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_add()
748 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_add()
846 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_remove()
930 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_next()
952 MUTEX_HELD(&spa_namespace_lock) || in spa_open_ref()
965 MUTEX_HELD(&spa_namespace_lock) || in spa_close()
994 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in spa_refcount_zero()
[all …]
H A Dspa_config.c137 mutex_enter(&spa_namespace_lock); in spa_config_load()
149 mutex_exit(&spa_namespace_lock); in spa_config_load()
252 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_write_cachefile()
378 int error = mutex_enter_interruptible(&spa_namespace_lock); in spa_all_configs()
393 mutex_exit(&spa_namespace_lock); in spa_all_configs()
572 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_config_update()
H A Dspa.c1043 mutex_enter(&spa_namespace_lock); in spa_change_guid()
1078 mutex_exit(&spa_namespace_lock); in spa_change_guid()
2048 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in spa_unload()
5105 ASSERT(MUTEX_HELD(&spa_namespace_lock) ||
5132 ASSERT(MUTEX_HELD(&spa_namespace_lock));
5208 ASSERT(MUTEX_HELD(&spa_namespace_lock));
5355 ASSERT(MUTEX_HELD(&spa_namespace_lock));
5402 mutex_exit(&spa_namespace_lock);
5641 mutex_enter(&spa_namespace_lock);
5805 if (MUTEX_NOT_HELD(&spa_namespace_lock)) {
[all …]
H A Dvdev_initialize.c685 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_initialize_stop_wait()
728 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_initialize_stop()
761 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_initialize_stop_all()
781 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_initialize_restart()
H A Dvdev_removal.c281 ASSERT(!MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_noalloc()
286 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_noalloc()
314 ASSERT(!MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_alloc()
319 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_alloc()
2037 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in vdev_remove_make_hole_and_free()
2065 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_remove_log()
2092 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_remove_log()
2141 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_remove_log()
2385 boolean_t locked = MUTEX_HELD(&spa_namespace_lock); in spa_vdev_remove()
2395 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_remove()
H A Dvdev_trim.c1043 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_trim_stop_wait()
1083 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_trim_stop()
1120 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_trim_stop_all()
1154 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_trim_restart()
1575 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_autotrim_restart()
1680 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in vdev_trim_l2arc()
H A Dmmp.c731 mutex_enter(&spa_namespace_lock); in mmp_signal_all_threads()
736 mutex_exit(&spa_namespace_lock); in mmp_signal_all_threads()
H A Dzio_inject.c910 mutex_enter(&spa_namespace_lock);
912 mutex_exit(&spa_namespace_lock); in zio_clear_fault()
997 mutex_enter(&spa_namespace_lock);
1019 mutex_exit(&spa_namespace_lock);
H A Dzvol.c912 ASSERT(mutex_owned(&spa_namespace_lock)); in zvol_first_open()
982 ASSERT0(MUTEX_HELD(&spa_namespace_lock)); in zvol_create_snap_minor_cb()
1082 ASSERT0(MUTEX_HELD(&spa_namespace_lock)); in zvol_create_minors_cb()
H A Dzfs_fm.c1566 boolean_t locked = mutex_owned(&spa_namespace_lock); in zfs_ereport_zvol_post()
1567 if (!locked) mutex_enter(&spa_namespace_lock); in zfs_ereport_zvol_post()
1569 if (!locked) mutex_exit(&spa_namespace_lock); in zfs_ereport_zvol_post()
H A Dvdev_rebuild.c1075 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_rebuild_restart()
1090 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_rebuild_stop_wait()
H A Dzfs_ioctl.c3049 mutex_enter(&spa_namespace_lock); in zfs_ioc_pool_set_props()
3054 mutex_exit(&spa_namespace_lock); in zfs_ioc_pool_set_props()
3103 mutex_enter(&spa_namespace_lock); in zfs_ioc_pool_get_props()
3110 mutex_exit(&spa_namespace_lock); in zfs_ioc_pool_get_props()
5993 mutex_enter(&spa_namespace_lock); in zfs_ioc_clear()
5996 mutex_exit(&spa_namespace_lock); in zfs_ioc_clear()
6004 mutex_exit(&spa_namespace_lock); in zfs_ioc_clear()
H A Darc.c8214 mutex_enter(&spa_namespace_lock); in l2arc_dev_get_next()
8259 mutex_exit(&spa_namespace_lock); in l2arc_dev_get_next()
9825 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in l2arc_spa_rebuild_start()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzvol_os.c789 if (!mutex_owned(&spa_namespace_lock)) { in zvol_open()
790 if (!mutex_tryenter(&spa_namespace_lock)) { in zvol_open()
814 mutex_exit(&spa_namespace_lock); in zvol_open()
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c1231 if (mutex_tryenter(&spa_namespace_lock)) { in ztest_kill()
1234 mutex_exit(&spa_namespace_lock); in ztest_kill()
1249 mutex_enter(&spa_namespace_lock); in ztest_kill()
1251 mutex_exit(&spa_namespace_lock); in ztest_kill()
3689 mutex_enter(&spa_namespace_lock); in ztest_split_pool()
3692 mutex_exit(&spa_namespace_lock); in ztest_split_pool()
3976 mutex_enter(&spa_namespace_lock); in raidz_scratch_verify()
3980 mutex_exit(&spa_namespace_lock); in raidz_scratch_verify()
7423 mutex_enter(&spa_namespace_lock); in ztest_walk_pool_directory()
7427 mutex_exit(&spa_namespace_lock); in ztest_walk_pool_directory()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa.h841 extern kmutex_t spa_namespace_lock;
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c7618 mutex_enter(&spa_namespace_lock); in zdb_set_skip_mmp()
7622 mutex_exit(&spa_namespace_lock); in zdb_set_skip_mmp()
9674 mutex_enter(&spa_namespace_lock); in main()
9680 mutex_exit(&spa_namespace_lock); in main()