回复: [PATCH 1/4] btrfs: use BTRFS_PATH_AUTO_FREE in insert_balance_item()
From: 李扬韬
Date: Wed Apr 09 2025 - 08:19:59 EST
> This isn't a good idea at all.
> We're now committing a transaction while holding a write lock on some leaf of the tree root - this can result in a deadlock as the transaction commit needs to update the tree root (see update_cowonly_root()).>
Thx for pointing out it. I missed it......
Is there anything we need to modify about the del_balance_item function?
Yangtao