]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bcachefs: Kill read lock dropping in bch2_btree_node_lock_write_nofail()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 10 Apr 2024 04:10:18 +0000 (00:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 11 Apr 2024 02:28:36 +0000 (22:28 -0400)
commit517236cb3e2f77bc785f06802dfbcca19dffd9ad
tree5339560a5fd6c55899a3053794cf18a1ddf8a25e
parentbeccf29114886f1604e26f739cd108f048878ca8
bcachefs: Kill read lock dropping in bch2_btree_node_lock_write_nofail()

dropping read locks in bch2_btree_node_lock_write_nofail() dates from
before we had the cycle detector; we can now tell the cycle detector
directly when taking a lock may not fail because we can't handle
transaction restarts.

This is needed for adding should_be_locked asserts.

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