]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Fix journal deadlock
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 3 Apr 2021 23:27:05 +0000 (19:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:58 +0000 (17:08 -0400)
commit6167f7c8ff5ce564423fe8b416b5f95d1712859b
treefa4e4542b6a9c8d9448204801403db1779bb18d2
parentb753d4b338df70df1ee75db21a216385bb88b90b
bcachefs: Fix journal deadlock

After we get a journal reservation, we need to use it - if we erorr out
of a transaction commit, we'll be eating into space in the journal and
if our transaction needs to make forward progress in order to reclaim
space in the journal, we'll deadlock.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_leaf.c