summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mpow.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-05-13 12:55:44 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-05-14 17:05:19 -0400
commit7b6759b1991d427cf9a562b2891b8c3e87a19c76 (patch)
tree6ccea7b463257f87df116efd52f029ea19491e99 /lib/mpi/mpi-mpow.c
parentb1c71cb492bb26dc883b11b5bd085d2467508f84 (diff)
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 'lib/mpi/mpi-mpow.c')
0 files changed, 0 insertions, 0 deletions