rhel7: infinite blocked waiting on inode_dio_wait in nfs

Solution Verified - Updated -

Issue

  • Hang occurs on direct I/O reads and writes with following logs:
[21867.746277] INFO: task python3:10706 blocked for more than 120 seconds.
[21867.746281] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[21867.746283] python3         D ffff9ca69b408000     0 10706  10695 0x00000080
[21867.746287] Call Trace:
[21867.746295]  [<ffffffff96b7f1c9>] schedule+0x29/0x70
[21867.746299]  [<ffffffff966658a9>] inode_dio_wait+0xd9/0x100
[21867.746304]  [<ffffffff964c6280>] ? wake_bit_function+0x40/0x40
[21867.746319]  [<ffffffffc085d25b>] nfs4_file_fsync+0x3b/0x170 [nfsv4]
[21867.746323]  [<ffffffff9667d7ee>] vfs_fsync+0x2e/0x40
[21867.746332]  [<ffffffffc085d4ce>] nfs4_file_flush+0x5e/0x90 [nfsv4]
[21867.746336]  [<ffffffff96645b87>] filp_close+0x37/0x90
[21867.746339]  [<ffffffff9666932c>] __close_fd+0x8c/0xb0
[21867.746342]  [<ffffffff966476a3>] SyS_close+0x23/0x50
[21867.746345]  [<ffffffff96b8bede>] system_call_fastpath+0x25/0x2a

Environment

  • Red Hat Enterprise Linux 7
  • Issue happens between (including) RHEL 7.3 and RHEL 7.8
  • NFSv3, NFSv4

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