Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lock inversion in txg_sync_thread()
This patch fixes a lock inversion issue in txg_sync_thread() where the code would attempt hold the spa config lock as a writer while holding tx->tx_sync_lock. This races with spa_vdev_remove() which attempts to hold the tx->tx_sync_lock to assign a new tx while holding the spa config lock as a reader. TEST_ZTEST_TIMEOUT=3600 Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tom Caputi <tcaputi@datto.com>
- Loading branch information