/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | multilist.c | 169 * multilist_sublist_lock(). Here we rely on MUTEX_HELD() in multilist_insert() 176 need_lock = !MUTEX_HELD(&mls->mls_lock); in multilist_insert() 212 need_lock = !MUTEX_HELD(&mls->mls_lock); in multilist_remove() 247 boolean_t need_lock = !MUTEX_HELD(&mls->mls_lock); in multilist_is_empty() 324 ASSERT(MUTEX_HELD(&mls->mls_lock)); in multilist_sublist_insert_tail() 332 ASSERT(MUTEX_HELD(&mls->mls_lock)); 340 ASSERT(MUTEX_HELD(&mls->mls_lock)); 348 ASSERT(MUTEX_HELD(&mls->mls_lock)); in multilist_sublist_move_forward() 370 ASSERT(MUTEX_HELD(&mls->mls_lock)); in multilist_sublist_is_empty() 384 ASSERT(MUTEX_HELD( in multilist_sublist_is_empty_idx() [all...] |
H A D | vdev_initialize.c | 137 ASSERT(MUTEX_HELD(&vd->vdev_initialize_lock)); in vdev_initialize_change_state() 629 ASSERT(MUTEX_HELD(&vd->vdev_initialize_lock)); in vdev_initialize() 650 ASSERT(MUTEX_HELD(&vd->vdev_initialize_lock)); in vdev_uninitialize() 667 ASSERT(MUTEX_HELD(&vd->vdev_initialize_lock)); in vdev_initialize_stop_wait_impl() 685 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_initialize_stop_wait() 709 ASSERT(MUTEX_HELD(&vd->vdev_initialize_lock)); in vdev_initialize_stop() 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 | zvol.c | 318 ASSERT(zv == NULL || (MUTEX_HELD(&zv->zv_state_lock) && in zvol_set_volsize() 766 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_setup_zv() 805 ASSERT(MUTEX_HELD(&zv->zv_state_lock) && in zvol_shutdown_zv() 851 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_suspend() 911 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_first_open() 934 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_last_close() 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() 1245 ASSERT(!MUTEX_HELD(&zv->zv_state_lock)); in zvol_remove_minor_task() 1382 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_remove_minor_impl()
|
H A D | metaslab.c | 1065 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_add() 1089 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_histogram_remove() 1152 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_sort_impl() 1153 ASSERT(MUTEX_HELD(&mg->mg_lock)); in metaslab_group_sort_impl() 1170 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_group_sort() 1540 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_largest_unflushed_free() 1755 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_df_alloc() 1811 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_cf_alloc() 1862 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_ndf_alloc() 1903 ASSERT(MUTEX_HELD(&msp->ms_lock)); in metaslab_load_wait() [all …]
|
H A D | vdev_trim.c | 296 ASSERT(MUTEX_HELD(&vd->vdev_trim_lock)); in vdev_trim_change_state() 1005 ASSERT(MUTEX_HELD(&vd->vdev_trim_lock)); in vdev_trim() 1025 ASSERT(MUTEX_HELD(&vd->vdev_trim_lock)); in vdev_trim_stop_wait_impl() 1043 ASSERT(MUTEX_HELD(&spa_namespace_lock) || in vdev_trim_stop_wait() 1066 ASSERT(MUTEX_HELD(&vd->vdev_trim_lock)); in vdev_trim_stop() 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 | zthr.c | 316 ASSERT(!MUTEX_HELD(&t->zthr_state_lock)); in zthr_destroy() 317 ASSERT(!MUTEX_HELD(&t->zthr_request_lock)); in zthr_destroy()
|
H A D | spa_misc.c | 622 ASSERT(MUTEX_HELD(&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() 1284 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_config_enter() 1299 ASSERT(MUTEX_HELD(&spa_namespace_lock)); in spa_vdev_config_exit() [all …]
|
H A D | zil.c | 863 ASSERT(MUTEX_HELD(&zilog->zl_lock)); in zil_free_lwb() 874 ASSERT(!MUTEX_HELD(&lwb->lwb_vdev_lock)); in zil_free_lwb() 1345 ASSERT(MUTEX_HELD(&lwb->lwb_zilog->zl_issuer_lock)); in zil_commit_waiter_link_lwb() 1347 MUTEX_HELD(&lwb->lwb_zilog->zl_lock)); in zil_commit_waiter_link_lwb() 1682 ASSERT(MUTEX_HELD(&zilog->zl_lock)); in zil_lwb_set_zio_dependency() 1728 ASSERT(MUTEX_HELD(&zilog->zl_issuer_lock)); in zil_lwb_write_open() 1842 ASSERT(MUTEX_HELD(&zilog->zl_issuer_lock)); in zil_lwb_write_close() 2150 ASSERT(MUTEX_HELD(&zilog->zl_issuer_lock)); in zil_lwb_assign() 2671 ASSERT(MUTEX_HELD(&zilog->zl_issuer_lock)); in zil_get_commit_list() 2802 ASSERT(MUTEX_HELD(&zilog->zl_issuer_lock)); in zil_prune_commit_list() [all …]
|
H A D | dsl_deadlist.c | 139 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dsl_deadlist_load_tree() 215 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dsl_deadlist_load_cache() 420 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dle_enqueue() 437 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dle_enqueue_subobj() 814 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dsl_deadlist_insert_bpobj() 844 ASSERT(MUTEX_HELD(&dl->dl_lock)); in dsl_deadlist_prefetch_bpobj()
|
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 | dbuf.c | 493 ASSERT(!MUTEX_HELD(&db->db_mtx)); in dbuf_hash_remove() 557 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_evict_user() 780 ASSERT(!MUTEX_HELD(&dbuf_evict_lock)); in dbuf_evict_one() 1100 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_verify() 1247 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_clear_data() 1260 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_set_data() 1443 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_read_bonus() 1484 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_read_hole() 1594 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_read_impl() 1692 ASSERT(MUTEX_HELD(&db->db_mtx)); in dbuf_fix_old_data() [all …]
|
H A D | txg.c | 349 ASSERT(!MUTEX_HELD(&tc->tc_lock)); in txg_rele_to_quiesce() 505 ASSERT(MUTEX_HELD(&tx->tx_sync_lock)); in txg_is_quiescing() 513 ASSERT(MUTEX_HELD(&tx->tx_sync_lock)); in txg_has_quiesced_to_sync() 870 ASSERT(MUTEX_HELD(&tl->tl_lock)); in txg_list_empty()
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | callb.h | 30 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp)); 49 ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
|
H A D | mutex.h | 65 #define MUTEX_HELD(mp) mutex_owned(mp) macro 66 #define MUTEX_NOT_HELD(mp) (!MUTEX_HELD(mp))
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-procfs-list.c | 66 ASSERT(MUTEX_HELD(&procfs_list->pl_lock)); in procfs_list_seq_show() 149 ASSERT(MUTEX_HELD(&cursor->procfs_list->pl_lock)); in procfs_list_seq_next() 280 ASSERT(MUTEX_HELD(&procfs_list->pl_lock)); in procfs_list_add()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_debug.c | 80 ASSERT(MUTEX_HELD(&zfs_dbgmsgs_lock)); in zfs_dbgmsg_addr() 96 ASSERT(MUTEX_HELD(&zfs_dbgmsgs_lock)); in zfs_dbgmsg_purge()
|
H A D | zvol_os.c | 281 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_geom_open() 313 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_geom_open() 402 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_geom_close() 979 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_cdev_open() 1008 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_cdev_open() 1087 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_cdev_close() 1268 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_os_rename_minor() 1337 ASSERT(!MUTEX_HELD(&zv->zv_state_lock)); in zvol_os_free() 1392 ASSERT(MUTEX_HELD(&zv->zv_state_lock)); in zvol_os_create_minor()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 270 #define MUTEX_HELD(mp) pthread_equal((mp)->m_owner, pthread_self()) 271 #define MUTEX_NOT_HELD(mp) !MUTEX_HELD(mp) 681 ASSERT(MUTEX_HELD((cp)->cc_lockp)); \ 685 ASSERT(MUTEX_HELD((cp)->cc_lockp)); \ 689 ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | mutex.h | 45 #define MUTEX_HELD(x) (mutex_owned(x)) macro
|
H A D | callb.h | 144 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | dtrace.c | 8573 ASSERT(MUTEX_HELD(&dtrace_lock)); 8809 ASSERT(MUTEX_HELD(&dtrace_provider_lock)); 8810 ASSERT(MUTEX_HELD(&dtrace_lock)); 8879 ASSERT(MUTEX_HELD(&dtrace_provider_lock)); 8880 ASSERT(MUTEX_HELD(&dtrace_lock)); 9155 ASSERT(MUTEX_HELD(&dtrace_lock)); 9229 ASSERT(MUTEX_HELD(&dtrace_lock)); 9336 ASSERT(MUTEX_HELD(&dtrace_provider_lock)); 9423 ASSERT(MUTEX_HELD(&dtrace_lock)); 9567 ASSERT(MUTEX_HELD(&dtrace_meta_lock)); [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_mod.c | 157 ASSERT(MUTEX_HELD(&mod_lock)); in ctf_modopen()
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | callb.h | 145 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
|
/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_load.c | 106 ASSERT(MUTEX_HELD(&cpu_lock)); in dtrace_load()
|
/freebsd/cddl/contrib/opensolaris/head/ |
H A D | synch.h | 180 #define MUTEX_HELD(x) _mutex_held(x) macro
|