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

Function zil_alloc_commit_waiter

freebsd/contrib/openzfs/module/zfs/zil.c:2742–2755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2740}
2741
2742static zil_commit_waiter_t *
2743zil_alloc_commit_waiter(void)
2744{
2745 zil_commit_waiter_t *zcw = kmem_cache_alloc(zil_zcw_cache, KM_SLEEP);
2746
2747 cv_init(&zcw->zcw_cv, NULL, CV_DEFAULT, NULL);
2748 mutex_init(&zcw->zcw_lock, NULL, MUTEX_DEFAULT, NULL);
2749 list_link_init(&zcw->zcw_node);
2750 zcw->zcw_lwb = NULL;
2751 zcw->zcw_done = B_FALSE;
2752 zcw->zcw_zio_error = 0;
2753
2754 return (zcw);
2755}
2756
2757static void
2758zil_free_commit_waiter(zil_commit_waiter_t *zcw)

Callers 1

zil_commit_implFunction · 0.85

Calls 4

kmem_cache_allocFunction · 0.85
cv_initFunction · 0.50
mutex_initFunction · 0.50
list_link_initFunction · 0.50

Tested by

no test coverage detected