summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJeongjun Park <aha310510@gmail.com>2025-02-02 09:13:51 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-02-07 06:35:11 +0300
commit2ef995df0ce592f665d312008dbe1ad1c4bcf87f (patch)
treef24aa732b4218060fa97083c54967d8fe323acd9 /tools/perf/scripts/python/task-analyzer.py
parent6b37037d6d1b42083642340efcf80f7a30203039 (diff)
downloadlinux-2ef995df0ce592f665d312008dbe1ad1c4bcf87f.tar.xz
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 <aha310510@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions