/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | spa_os.c | 195 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 D | zfs_ioctl_os.c | 110 mutex_enter(&spa_namespace_lock); in zfs_ioc_nextboot() 114 mutex_exit(&spa_namespace_lock); in zfs_ioc_nextboot()
|
H A D | zvol_os.c | 292 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 D | spa_misc.c | 240 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 D | spa_config.c | 137 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 D | spa.c | 1043 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 D | vdev_initialize.c | 685 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 D | vdev_removal.c | 281 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 D | vdev_trim.c | 1043 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 D | mmp.c | 731 mutex_enter(&spa_namespace_lock); in mmp_signal_all_threads() 736 mutex_exit(&spa_namespace_lock); in mmp_signal_all_threads()
|
H A D | zio_inject.c | 910 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 D | zvol.c | 912 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 D | zfs_fm.c | 1566 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 D | vdev_rebuild.c | 1075 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_rebuild_restart() 1090 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_rebuild_stop_wait()
|
H A D | zfs_ioctl.c | 3049 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 D | arc.c | 8214 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 D | zvol_os.c | 789 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 D | ztest.c | 1231 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 D | spa.h | 841 extern kmutex_t spa_namespace_lock;
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 7618 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()
|