]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bcachefs: Use wait_on_allocator() when allocating journal
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 24 Jun 2025 21:53:00 +0000 (17:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 24 Jun 2025 22:16:01 +0000 (18:16 -0400)
wait_on_allocator() emits debug info when we hang trying to allocate.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c

index df71af0013ba2835071234dd5a9b53d8390e13c2..f22b05e02c1e6e4a54061f1824277d99c7207b70 100644 (file)
@@ -1283,7 +1283,7 @@ static int bch2_set_nr_journal_buckets_loop(struct bch_fs *c, struct bch_dev *ca
                        ret = 0; /* wait and retry */
 
                bch2_disk_reservation_put(c, &disk_res);
-               closure_sync(&cl);
+               bch2_wait_on_allocator(c, &cl);
        }
 
        return ret;