Access to CD ROM drive in guest system is getting hung

Solution Unverified - Updated -

Issue

  • Various processes accessing the CD-ROM drive in guest system are getting hung with following call traces:

    INFO: task vm-dump-metrics:21050 blocked for more than 120 seconds.
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    vm-dump-metrics D ffff8801878246a0     0 21050  21010 0x00000080
    ffff880054167b10 0000000000000082 ffff8800a0830000 ffff880054167fd8
    ffff880054167fd8 ffff880054167fd8 ffff8800a0830000 ffff880187824698
    ffff88018782469c ffff8800a0830000 00000000ffffffff ffff8801878246a0
    Call Trace:
    [<ffffffff8168c969>] schedule_preempt_disabled+0x29/0x70
    [<ffffffff8168a5c5>] __mutex_lock_slowpath+0xc5/0x1c0
    [<ffffffff81689a2f>] mutex_lock+0x1f/0x2f
    [<ffffffff8123ae26>] __blkdev_get+0x76/0x4e0
    [<ffffffff8123b465>] blkdev_get+0x1d5/0x360
    [<ffffffff8123b69b>] blkdev_open+0x5b/0x80
    [<ffffffff811fbf07>] do_dentry_open+0x1a7/0x2e0
    [<ffffffff812a8a1c>] ? security_inode_permission+0x1c/0x30
    [<ffffffff8123b640>] ? blkdev_get_by_dev+0x50/0x50
    [<ffffffff811fc0df>] vfs_open+0x5f/0xe0
    [<ffffffff81209aa8>] ? may_open+0x68/0x110
    [<ffffffff8120cc4d>] do_last+0x1ed/0x12a0
    [<ffffffff811de446>] ? kmem_cache_alloc_trace+0x1d6/0x200
    [<ffffffff8120ddc2>] path_openat+0xc2/0x490
    [<ffffffff811b0f11>] ? handle_mm_fault+0x6b1/0xfe0
    [<ffffffff810f5080>] ? futex_wake+0x80/0x160
    [<ffffffff8120ff3b>] do_filp_open+0x4b/0xb0
    [<ffffffff8121cbb7>] ? __alloc_fd+0xa7/0x130
    [<ffffffff811fd443>] do_sys_open+0xf3/0x1f0
    [<ffffffff811fd55e>] SyS_open+0x1e/0x20
    [<ffffffff816967c9>] system_call_fastpath+0x16/0x1b
    
  • Common commands that hang include blkid, fdisk, parted, and other utilities that scan all storage devices within configuration as they end up hung on accessing the cdrom/dvd device:

    $ $ date ; ps aux | head -1 ; ps aux | grep " D "
    Mon Jul 21 18:33:03 EDT 2020
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root     17416  0.0  0.0      0     0 ?        D    08:20   0:00 blkid
    root     22448  0.0  0.0      0     0 ?        D    09:41   0:00 fdisk
    root     30581  0.0  0.0      0     0 ?        D    11:17   0:00 parted
    :
    

Environment

  • Red Hat Enterprise Linux 7.3
  • RHEL system as a virtual guest in KVM or VMware environment
  • CD-ROM drive connected through IDE controller

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