diff options
| author | Jeongjun Park <[email protected]> | 2025-02-02 06:13:51 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-02-07 03:35:11 +0000 |
| commit | 2ef995df0ce592f665d312008dbe1ad1c4bcf87f (patch) | |
| tree | f24aa732b4218060fa97083c54967d8fe323acd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | bcachefs: fix incorrect pointer check in __bch2_subvolume_delete() (diff) | |
| download | kernel-2ef995df0ce592f665d312008dbe1ad1c4bcf87f.tar.gz kernel-2ef995df0ce592f665d312008dbe1ad1c4bcf87f.zip | |
bcachefs: fix deadlock in journal_entry_open()
In the previous commit b3d82c2f2761, code was added to prevent journal sequence
overflow. Among them, the code added to journal_entry_open() uses the
bch2_fs_fatal_err_on() function to handle errors.
However, __journal_res_get() , which calls journal_entry_open() , calls
journal_entry_open() while holding journal->lock , but bch2_fs_fatal_err_on()
internally tries to acquire journal->lock , which results in a deadlock.
So we need to add a locked helper to handle fatal errors even when the
journal->lock is held.
Fixes: b3d82c2f2761 ("bcachefs: Guard against journal seq overflow")
Signed-off-by: Jeongjun Park <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
