diff options
| author | Josef Bacik <[email protected]> | 2024-11-13 16:05:13 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-11-14 15:11:02 +0000 |
| commit | 7d493a5ecc26f861421af6e64427d5f697ddd395 (patch) | |
| tree | ad16cb375ddd18db847b21e69187c7283730e307 /rust/helpers/mutex.c | |
| parent | btrfs: fix the length of reserved qgroup to free (diff) | |
| download | kernel-7d493a5ecc26f861421af6e64427d5f697ddd395.tar.gz kernel-7d493a5ecc26f861421af6e64427d5f697ddd395.zip | |
btrfs: fix incorrect comparison for delayed refs
When I reworked delayed ref comparison in cf4f04325b2b ("btrfs: move
->parent and ->ref_root into btrfs_delayed_ref_node"), I made a mistake
and returned -1 for the case where ref1->ref_root was > than
ref2->ref_root. This is a subtle bug that can result in improper
delayed ref running order, which can result in transaction aborts.
Fixes: cf4f04325b2b ("btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_node")
CC: [email protected] # 6.10+
Reviewed-by: Filipe Manana <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
