Home
last modified time | relevance | path

Searched refs:MUTEX_HELD (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dmultilist.c169 * 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 Dvdev_initialize.c137 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 Dzvol.c318 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 Dmetaslab.c1065 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 Dvdev_trim.c296 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 Dzthr.c316 ASSERT(!MUTEX_HELD(&t->zthr_state_lock)); in zthr_destroy()
317 ASSERT(!MUTEX_HELD(&t->zthr_request_lock)); in zthr_destroy()
H A Dspa_misc.c622 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 Dzil.c863 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 Ddsl_deadlist.c139 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 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 Ddbuf.c493 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 Dtxg.c349 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 Dcallb.h30 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
49 ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
H A Dmutex.h65 #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 Dspl-procfs-list.c66 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 Dzfs_debug.c80 ASSERT(MUTEX_HELD(&zfs_dbgmsgs_lock)); in zfs_dbgmsg_addr()
96 ASSERT(MUTEX_HELD(&zfs_dbgmsgs_lock)); in zfs_dbgmsg_purge()
H A Dzvol_os.c281 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 Dzfs_context.h270 #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 Dmutex.h45 #define MUTEX_HELD(x) (mutex_owned(x)) macro
H A Dcallb.h144 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c8573 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 Dctf_mod.c157 ASSERT(MUTEX_HELD(&mod_lock)); in ctf_modopen()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcallb.h145 #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
/freebsd/sys/cddl/dev/dtrace/
H A Ddtrace_load.c106 ASSERT(MUTEX_HELD(&cpu_lock)); in dtrace_load()
/freebsd/cddl/contrib/opensolaris/head/
H A Dsynch.h180 #define MUTEX_HELD(x) _mutex_held(x) macro

123