System hang with dmsetup hung on __mutex_lock for dm-writecache device
Issue
- System hang with
dmsetup
hung on__mutex_lock
fordm-writecache
device:
INFO: task dmsetup:11172 blocked for more than 120 seconds.
Not tainted 4.18.0-348.7.1.el8_5.x86_64 #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:dmsetup state:D stack: 0 pid:11172 ppid: 10610 flags:0x00000084
Call Trace:
__schedule+0x2bd/0x760
schedule+0x37/0xa0
schedule_preempt_disabled+0xa/0x10
__mutex_lock.isra.6+0x2b5/0x4a0
? table_load+0x2e0/0x2e0 [dm_mod]
dm_resume+0x1a/0xb0 [dm_mod]
dev_suspend+0x1e7/0x290 [dm_mod]
ctl_ioctl+0x1af/0x3f0 [dm_mod]
? selinux_file_ioctl+0xf0/0x220
dm_ctl_ioctl+0xa/0x10 [dm_mod]
do_vfs_ioctl+0xa4/0x680
ksys_ioctl+0x60/0x90
__x64_sys_ioctl+0x16/0x20
do_syscall_64+0x5b/0x1a0
entry_SYSCALL_64_after_hwframe+0x65/0xca
RIP: 0033:0x7f463762962b
Code: Unable to access opcode bytes at RIP 0x7f4637629601.
RSP: 002b:00007ffe276c4c08 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f463861d1c0 RCX: 00007f463762962b
RDX: 00005577d1f82c60 RSI: 00000000c138fd06 RDI: 0000000000000003
RBP: 00007f4638658f83 R08: 00007f4638659b20 R09: 00007ffe276c4a70
R10: 000000000000000f R11: 0000000000000202 R12: 00005577d1f82c60
R13: 00005577d1f82d10 R14: 0000000000000001 R15: 00005577d1f825d0
Environment
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.