bcachefs: Fix a deadlock on journal reclaim
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 20 Apr 2021 21:09:25 +0000 (17:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commitf09517fc5136ad2ea67b6f332ed2445f053ccfe6
tree67e6bbf58fb4ce196e2c9b6efbc8df4dda5426bf
parent6adaac0b95dd39da290f6006822fbf7560d2d1b5
bcachefs: Fix a deadlock on journal reclaim

Flushing the btree key cache needs to use allocation reserves - journal
reclaim depends on flushing the btree key cache for making forward
progress, and the allocator and copygc depend on journal reclaim making
forward progress.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_key_cache.c
fs/bcachefs/journal_reclaim.c
fs/bcachefs/movinggc.c