Searched refs:tx_cpu (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | txg.c | 124 tx->tx_cpu = kmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init() 129 mutex_init(&tx->tx_cpu[c].tc_lock, NULL, MUTEX_DEFAULT, NULL); in txg_init() 130 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_DEFAULT, in txg_init() 133 cv_init(&tx->tx_cpu[c].tc_cv[i], NULL, CV_DEFAULT, in txg_init() 135 list_create(&tx->tx_cpu[c].tc_callbacks[i], in txg_init() 174 mutex_destroy(&tx->tx_cpu[c].tc_open_lock); in txg_fini() 175 mutex_destroy(&tx->tx_cpu[c].tc_lock); in txg_fini() 177 cv_destroy(&tx->tx_cpu[c].tc_cv[i]); in txg_fini() 178 list_destroy(&tx->tx_cpu[c].tc_callbacks[i]); in txg_fini() 185 kmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); in txg_fini() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | txg_impl.h | 70 struct tx_cpu { struct 91 tx_cpu_t *tx_cpu; /* protects access to tx_open_txg */ member
|
H A D | txg.h | 48 typedef struct tx_cpu tx_cpu_t;
|