aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorJeongjun Park <[email protected]>2025-02-02 06:13:51 +0000
committerKent Overstreet <[email protected]>2025-02-07 03:35:11 +0000
commit2ef995df0ce592f665d312008dbe1ad1c4bcf87f (patch)
treef24aa732b4218060fa97083c54967d8fe323acd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentbcachefs: fix incorrect pointer check in __bch2_subvolume_delete() (diff)
downloadkernel-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