diff options
author | Brian Foster <bfoster@redhat.com> | 2023-03-22 15:27:58 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:59 +0300 |
commit | 349b1d832ba534b802a28f316e40128c54643c32 (patch) | |
tree | e8c727266703c98c8e36b2cce946110f1e55c640 /fs/bcachefs/backpointers.h | |
parent | 3d86f13df67b554a7b27e28a4b144425710409bf (diff) | |
download | linux-349b1d832ba534b802a28f316e40128c54643c32.tar.xz |
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>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/backpointers.h')
0 files changed, 0 insertions, 0 deletions