diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 19:20:36 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 21:14:02 -0400 |
commit | e2a316b3cc45a1198f3feb18707403bb7f0cbc15 (patch) | |
tree | 9e274feee0dcebf4ef57203e2cfe2e7399e9da08 /fs/bcachefs/alloc_types.h | |
parent | ba947ecd39ea0e6a6f6f1101f99611fc30943bcb (diff) | |
download | linux-e2a316b3cc45a1198f3feb18707403bb7f0cbc15.tar.gz linux-e2a316b3cc45a1198f3feb18707403bb7f0cbc15.tar.bz2 linux-e2a316b3cc45a1198f3feb18707403bb7f0cbc15.zip |
bcachefs: BCH_WATERMARK_interior_updates
This adds a new watermark, higher priority than BCH_WATERMARK_reclaim,
for interior btree updates. We've seen a deadlock where journal replay
triggers a ton of btree node merges, and these use up all available open
buckets and then interior updates get stuck.
One cause of this is that we're currently lacking btree node merging on
write buffer btrees - that needs to be fixed as well.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_types.h')
-rw-r--r-- | fs/bcachefs/alloc_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index b91b7a461056..c2226e947c41 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -22,7 +22,8 @@ struct bucket_alloc_state { x(copygc) \ x(btree) \ x(btree_copygc) \ - x(reclaim) + x(reclaim) \ + x(interior_updates) enum bch_watermark { #define x(name) BCH_WATERMARK_##name, |