bcachefs: path->should_be_locked fixes

- We should only be clearing should_be_locked in btree_path_set_pos() -
   it's the responsiblity of the btree_path code, not the btree_iter
   code.

 - bch2_path_put() needs to pay attention to path->should_be_locked, to
   ensure we don't drop locks we're supposed to be keeping.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2021-11-07 10:19:37 -05:00 • committed by Kent Overstreet
commit 9a74f63c97
2 changed files with 17 additions and 10 deletions