Commit 2ec254c0 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Ensure bch2_btree_node_lock_write_nofail() never fails



In order for bch2_btree_node_lock_write_nofail() to never produce a
deadlock, we must ensure we're never holding read locks when using it.
Fortunately, it's only used from code paths where any read locks may be
safely dropped.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0d7009d7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment