diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-20 05:40:03 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:48 +0300 |
commit | d5425a3b220a8b94ae2dd3c74af001a6b1216651 (patch) | |
tree | b1a1c328a1e22f247ec9d3702ac4ff297722df7f /fs/bcachefs/trace.h | |
parent | 9d4582ffdb286d3513ee9ebf7961b1741d8cbc0d (diff) | |
download | linux-d5425a3b220a8b94ae2dd3c74af001a6b1216651.tar.xz |
bcachefs: Throttle updates when btree key cache is too dirty
This is needed to ensure we don't deadlock because journal reclaim and
thus memory reclaim isn't making forward progress.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
-rw-r--r-- | fs/bcachefs/trace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 9706b6a3b1b2..babb07e3acc4 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -681,6 +681,11 @@ DEFINE_EVENT(transaction_restart, trans_restart_journal_preres_get, TP_ARGS(ip) ); +DEFINE_EVENT(transaction_restart, trans_restart_journal_reclaim, + TP_PROTO(unsigned long ip), + TP_ARGS(ip) +); + DEFINE_EVENT(transaction_restart, trans_restart_mark_replicas, TP_PROTO(unsigned long ip), TP_ARGS(ip) |