mbox series

[0/2] ocfs2: fix a deadlock case

Message ID 20220121071205.100648-1-joseph.qi@linux.alibaba.com (mailing list archive)
Headers show
Series ocfs2: fix a deadlock case | expand

Message

Joseph Qi Jan. 21, 2022, 7:12 a.m. UTC
This is trying to fix a deadlock case in ocfs2.
We firstly export jbd2 symbols jbd2_journal_[grab|put]_journal_head as
preparation and later use them in ocfs2 insread of
jbd_[lock|unlock]_bh_journal_head to fix the deadlock.

Joseph Qi (2):
  jbd2: export jbd2_journal_[grab|put]_journal_head
  ocfs2: fix a deadlock when commit trans

 fs/jbd2/journal.c   |  2 ++
 fs/ocfs2/suballoc.c | 25 +++++++++++--------------
 2 files changed, 13 insertions(+), 14 deletions(-)