diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-07 13:58:57 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-07 21:04:55 -0400 |
| commit | cecf72798b25fcb00303392407fccf500a746747 (patch) | |
| tree | c17a5f02f5f59c1a3af3ddf2355162659e66f3cb /fs/bcachefs/io_misc.c | |
| parent | bcachefs: Add missing path_traverse() to btree_iter_next_node() (diff) | |
| download | linux-cecf72798b25fcb00303392407fccf500a746747.tar.gz linux-cecf72798b25fcb00303392407fccf500a746747.zip | |
bcachefs: Make allocator stuck timeout configurable, ratelimit messages
Limit these messages to once every 2 minutes to avoid spamming logs;
with multiple devices the output can be quite significant.
Also, up the default timeout to 30 seconds from 10 seconds.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_misc.c')
| -rw-r--r-- | fs/bcachefs/io_misc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/bcachefs/io_misc.c b/fs/bcachefs/io_misc.c index 2cf6297756f8..177ed331c00b 100644 --- a/fs/bcachefs/io_misc.c +++ b/fs/bcachefs/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; |
