]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Only abort the transactions in the cycle
authorAlan Huang <mmpgouride@gmail.com>
Wed, 2 Oct 2024 19:06:32 +0000 (03:06 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Jan 2025 15:45:18 +0000 (10:45 -0500)
commitb169138d482980d31207c2d1706a2be2529978cf
treec3b1547efb4c88703e58d44d497e6a9b1364c9fe
parent6853a5e5d48b54127166291b1fc2cc7030fbcc38
bcachefs: Only abort the transactions in the cycle

When the cycle doesn't involve the initiator of the cycle detection,
we might choose a transaction that is not involved in the cycle to abort.
It shouldn't be that since it won't break the cycle, this patch
therefore chooses the transaction in the cycle to abort.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_locking.c