• Kent Overstreet's avatar
    bcachefs: Another should_be_locked fixup · 8192f8a5
    Kent Overstreet authored
    When returning a key from the key cache, in BTREE_ITER_WITH_KEY_CACHE
    mode, we don't want to set should_be_locked on iter->path; we're not
    returning a key from that path, so we donn't need to, and also since we
    traversed the key cache iterator before setting should_be_locked on that
    path it might be unlocked (if we unlocked, bch2_trans_relock() won't
    have relocked it).
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    8192f8a5
btree_iter.c 90.2 KB