From be9e782df3cb557715630a61dc79d9f966737859 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 27 Oct 2023 15:23:46 -0400 Subject: bcachefs: Don't downgrade locks on transaction restart We should only be downgrading locks on success - otherwise, our transaction restarts won't be getting the correct locks and we'll livelock. Signed-off-by: Kent Overstreet --- fs/bcachefs/btree_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/bcachefs/btree_types.h') diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index a039ce4a4809..ecbb44b939a0 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -228,6 +228,8 @@ struct btree_path { u8 sorted_idx; u8 ref; u8 intent_ref; + u32 alloc_seq; + u32 downgrade_seq; /* btree_iter_copy starts here: */ struct bpos pos; -- cgit v1.2.3