diff options
Diffstat (limited to 'libbcachefs/io_misc.c')
-rw-r--r-- | libbcachefs/io_misc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libbcachefs/io_misc.c b/libbcachefs/io_misc.c index 2cf62977..177ed331 100644 --- a/libbcachefs/io_misc.c +++ b/libbcachefs/io_misc.c @@ -126,11 +126,7 @@ err_noprint: if (closure_nr_remaining(&cl) != 1) { bch2_trans_unlock_long(trans); - - if (closure_sync_timeout(&cl, HZ * 10)) { - bch2_print_allocator_stuck(c); - closure_sync(&cl); - } + bch2_wait_on_allocator(c, &cl); } return ret; |