summaryrefslogtreecommitdiff
path: root/fs/bcachefs/alloc_background.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2023-03-22 08:27:58 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-05-12 19:42:31 -0400
commitc8275e4ee24d294f24fd1c0ac34f053cf9fe483e (patch)
tree4f863e6911e7d4bcd4a2ecfc16c1851461373357 /fs/bcachefs/alloc_background.c
parentdaa365cd68cd25148d3eab583d61300afc53dff8 (diff)
bcachefs: use reservation for log messages during recovery
If we block on journal reservation attempting to log journal messages during recovery, particularly for the first message(s) before we start doing actual work, chances are the filesystem ends up deadlocked. Allow logged messages to use reserved journal space to mitigate this problem. In the worst case where no space is available whatsoever, this at least allows the fs to recognize that the journal is stuck and fail the mount gracefully. Signed-off-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/bcachefs/alloc_background.c')
0 files changed, 0 insertions, 0 deletions