• Kent Overstreet's avatar
    bcachefs: Fix lock ordering under traverse_all() · 61a66469
    Kent Overstreet authored
    traverse_all() traverses btree paths in sorted order, so it should never
    see transaction restarts due to lock ordering violations. But some code
    in __bch2_btree_path_upgrade(), while necessary when not running under
    traverse_all(), was causing some confusing lock ordering violations -
    disabling this code under traverse_all() will let us put in some more
    assertions.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    61a66469
btree_iter.c 81.6 KB