Hung task "jbd2/dm-16-8" in jbd2_journal_commit_transaction() when issuing I/O through a software RAID or mirror device

Solution Verified - Updated -

Issue

  • System crashes or hangs with the below hung task:

    crash> bt 1324
    PID: 1324   TASK: ffff880859858000  CPU: 1   COMMAND: "jbd2/dm-16-8"
     #0 [ffff880854373a60] __schedule at ffffffff816a8f65
     #1 [ffff880854373ac8] schedule at ffffffff816a94e9
     #2 [ffff880854373ad8] schedule_timeout at ffffffff816a6ff9
     #3 [ffff880854373b88] io_schedule_timeout at ffffffff816a8b6d
     #4 [ffff880854373bb8] io_schedule at ffffffff816a8c08
     #5 [ffff880854373bc8] bit_wait_io at ffffffff816a7621
     #6 [ffff880854373be0] __wait_on_bit at ffffffff816a7145
     #7 [ffff880854373c20] out_of_line_wait_on_bit at ffffffff816a71f1
     #8 [ffff880854373c98] __wait_on_buffer at ffffffff812365ca
     #9 [ffff880854373ca8] jbd2_journal_commit_transaction at ffffffffc06e0fa2 [jbd2]
    #10 [ffff880854373e48] kjournald2 at ffffffffc06e6a79 [jbd2]
    #11 [ffff880854373ec8] kthread at ffffffff810b098f
    #12 [ffff880854373f50] ret_from_fork at ffffffff816b4f58
    

Environment

  • Red Hat Enterprise Linux 7
  • kernel 3.10.0-693.2.2.el7.x86_64 (the issue may affect other kernel versions after 3.10.0-514.21.2.el7.x86_64 and before kernel-3.10.0-862.el7)
  • LVM RAID or other device-mapper device in RAID configuration

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content