Searched refs:tx_cpu (Results 1 – 3 of 3) sorted by relevance
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | txg.c | 118 tx->tx_cpu = vmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init() 123 mutex_init(&tx->tx_cpu[c].tc_lock, NULL, MUTEX_DEFAULT, NULL); in txg_init() 124 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_NOLOCKDEP, in txg_init() 127 cv_init(&tx->tx_cpu[c].tc_cv[i], NULL, CV_DEFAULT, in txg_init() 129 list_create(&tx->tx_cpu[c].tc_callbacks[i], in txg_init() 168 mutex_destroy(&tx->tx_cpu[c].tc_open_lock); in txg_fini() 169 mutex_destroy(&tx->tx_cpu[c].tc_lock); in txg_fini() 171 cv_destroy(&tx->tx_cpu[c].tc_cv[i]); in txg_fini() 172 list_destroy(&tx->tx_cpu[c].tc_callbacks[i]); in txg_fini() 179 vmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); in txg_fini() [all …]
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | txg_impl.h | 61 struct tx_cpu { struct 81 tx_cpu_t *tx_cpu; /* protects access to tx_open_txg */ member
|
| H A D | txg.h | 41 typedef struct tx_cpu tx_cpu_t;
|