Searched refs:tx_cpu (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dtxg_impl.h42 * The tx_cpu structure is a per-cpu structure that is used to track
48 * tx_cpu structures have reached a tc_count of zero.
56 * The tx_cpu contains two locks, the tc_lock and tc_open_lock.
57 * The tc_lock is used to protect all members of the tx_cpu structure with
70 struct tx_cpu { struct
83 * an array of tx_cpu structures (described above). Although the tx_sync_lock
85 * protect the tx_open_txg. Instead a special lock in the tx_cpu structure
91 tx_cpu_t *tx_cpu; /* protects access to tx_open_txg */ member in struct:tx_state
H A Dtxg.h48 typedef struct tx_cpu tx_cpu_t;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dtxg.c123 tx->tx_cpu = kmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP);
128 mutex_init(&tx->tx_cpu[c].tc_lock, NULL, MUTEX_DEFAULT, NULL);
129 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_DEFAULT,
132 cv_init(&tx->tx_cpu[c].tc_cv[i], NULL, CV_DEFAULT,
134 list_create(&tx->tx_cpu[c].tc_callbacks[i],
173 mutex_destroy(&tx->tx_cpu[c].tc_open_lock);
174 mutex_destroy(&tx->tx_cpu[c].tc_lock);
176 cv_destroy(&tx->tx_cpu[c].tc_cv[i]);
177 list_destroy(&tx->tx_cpu[c].tc_callbacks[i]);
184 kmem_free(tx->tx_cpu, max_ncpu
[all...]

Completed in 113 milliseconds