Searched refs:tc_open_lock (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dtxg_impl.h56 * The tx_cpu contains two locks, the tc_lock and tc_open_lock.
58 * the exception of the tc_open_lock. This lock should only be held for a
61 * The tc_open_lock protects the tx_open_txg member of the tx_state structure.
66 * The tc_open_lock is held until the transaction is assigned into the
71 kmutex_t tc_open_lock; /* protects tx_open_txg */ member in struct:tx_cpu
86 * is used. Readers of tx_open_txg must grab the per-cpu tc_open_lock.
87 * Any thread wishing to update tx_open_txg must grab the tc_open_lock on
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dtxg.c129 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_DEFAULT,
173 mutex_destroy(&tx->tx_cpu[c].tc_open_lock);
298 mutex_enter(&tc->tc_open_lock);
317 mutex_exit(&tc->tc_open_lock);
363 mutex_enter(&tx->tx_cpu[c].tc_open_lock);
377 mutex_exit(&tx->tx_cpu[c].tc_open_lock);

Completed in 77 milliseconds