MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dsl_pool_sync_context

Function dsl_pool_sync_context

freebsd/contrib/openzfs/module/zfs/dsl_pool.c:827–833  ·  view source on GitHub ↗

* TRUE if the current thread is the tx_sync_thread or if we * are being called from SPA context during pool initialization. */

Source from the content-addressed store, hash-verified

825 * are being called from SPA context during pool initialization.
826 */
827int
828dsl_pool_sync_context(dsl_pool_t *dp)
829{
830 return (curthread == dp->dp_tx.tx_sync_thread ||
831 spa_is_initializing(dp->dp_spa) ||
832 taskq_member(dp->dp_sync_taskq, curthread));
833}
834
835/*
836 * This function returns the amount of allocatable space in the pool

Callers 15

dmu_tx_assignFunction · 0.85
space_range_cbFunction · 0.85
spa_guidFunction · 0.85
vdev_config_dirtyFunction · 0.85
vdev_config_cleanFunction · 0.85
vdev_state_dirtyFunction · 0.85
vdev_state_cleanFunction · 0.85
dbuf_release_bpFunction · 0.85
dbuf_remap_impl_callbackFunction · 0.85
dbuf_remap_implFunction · 0.85

Calls 2

spa_is_initializingFunction · 0.85
taskq_memberFunction · 0.50

Tested by

no test coverage detected