• Kent Overstreet's avatar
    bcachefs: Fix an allocator shutdown deadlock · 9f6e1f7b
    Kent Overstreet authored
    On fstest generic/388, we were seeing sporadic deadlocks in the
    emergency shutdown, where we'd get stuck shutting down the allocator
    because bch2_btree_update_start() -> bch2_btree_reserve_get() allocated
    and then deallocated some btree nodes, putting them back on the
    btree_reserve_cache, after the allocator shutdown code had already
    cleared out that cache.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    9f6e1f7b
btree_update_interior.c 55.2 KB