RHEL9: deadlock on dfs_cache_refresh

Solution Verified - Updated -

Issue

  • Tasks are blocked with logs:
[137502.840257] INFO: task kworker/u515:2:208760 blocked for more than 122 seconds.
[137502.840953] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[137502.841311] task:kworker/u515:2  state:D stack:    0 pid:208760 ppid:     2 flags:0x00004000
[137502.841682] Workqueue: cifs-dfscache dfs_cache_refresh [cifs]
[137502.842122] Call Trace:
[137502.842494]  <TASK>
[137502.842864]  __schedule+0x248/0x620
[137502.843225]  ? srso_alias_return_thunk+0x5/0xfbef5
[137502.843589]  schedule+0x2d/0x60
[137502.843948]  schedule_preempt_disabled+0x11/0x20
[137502.844300]  __mutex_lock.constprop.0+0x2a1/0x430
[137502.844649]  ? srso_alias_return_thunk+0x5/0xfbef5
[137502.844992]  ? __update_idle_core+0x1b/0xb0
[137502.845325]  ? srso_alias_return_thunk+0x5/0xfbef5
[137502.845656]  dfs_cache_refresh+0x2d/0xd0 [cifs]
[137502.846045]  process_one_work+0x1e5/0x3b0
[137502.846374]  worker_thread+0x50/0x3a0
[137502.846703]  ? rescuer_thread+0x390/0x390
[137502.847037]  kthread+0xd9/0x100
[137502.847364]  ? kthread_complete_and_exit+0x20/0x20
[137502.847696]  ret_from_fork+0x22/0x30
[137502.848032]  </TASK>

Environment

  • Red Hat Enterprise Linux 9.4
  • [cifs]

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