diff options
author | 2025-05-13 12:55:44 -0400 | |
---|---|---|
committer | 2025-05-14 17:05:19 -0400 | |
commit | 7b6759b1991d427cf9a562b2891b8c3e87a19c76 (patch) | |
tree | 6ccea7b463257f87df116efd52f029ea19491e99 /scripts/lib/kdoc/kdoc_files.py | |
parent | bcachefs: Fix broken btree_path lock invariants in next_node() (diff) | |
download | linux-rng-7b6759b1991d427cf9a562b2891b8c3e87a19c76.tar.xz linux-rng-7b6759b1991d427cf9a562b2891b8c3e87a19c76.zip |
bcachefs: Fix livelock in journal_entry_open()
When the journal is low on space, we might do discards from
journal_res_get() -> journal_entry_open().
Make sure we set j->can_discard correctly, so that if we're low on space
but not because discards aren't keeping up we don't livelock.
Fixes: 8e4d28036c29 ("bcachefs: Don't aggressively discard the journal")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions