bcachefs: Fix for bch2_trans_commit() unlocking when it's not supposed to
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 28 Mar 2021 00:58:57 +0000 (20:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:57 +0000 (17:08 -0400)
commitf793fd85dc598616ff903750b2a6d63425c23b2f
tree090ea561c822b7d0e84484cdcdfe75aebae9694e
parent3bf57160c23d507a46c1a7a4a453405d21ac0d7c
bcachefs: Fix for bch2_trans_commit() unlocking when it's not supposed to

When we pass BTREE_INSERT_NOUNLOCK bch2_trans_commit isn't supposed to
unlock after a successful commit, but it was calling
bch2_trans_cond_resched() - oops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.h
fs/bcachefs/btree_update_leaf.c