Skip to content

Commit f5109c2

Browse files
author
Kent Overstreet
committed
bcachefs: Use wait_on_allocator() when allocating journal
wait_on_allocator() emits debug info when we hang trying to allocate. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 865ad1d commit f5109c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ static int bch2_set_nr_journal_buckets_loop(struct bch_fs *c, struct bch_dev *ca
12831283
ret = 0; /* wait and retry */
12841284

12851285
bch2_disk_reservation_put(c, &disk_res);
1286-
closure_sync(&cl);
1286+
bch2_wait_on_allocator(c, &cl);
12871287
}
12881288

12891289
return ret;

0 commit comments

Comments
 (0)