INFO: task blkid:6427 blocked for more than 120 seconds. Not tainted 4.14.0-rc1+ #88 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. blkid D18048 6427 1614 0x80000006 Call Trace: context_switch kernel/sched/core.c:2790 [inline] __schedule+0x8e8/0x2070 kernel/sched/core.c:3366 schedule+0x108/0x440 kernel/sched/core.c:3425 io_schedule+0x1c/0x70 kernel/sched/core.c:5032 wait_on_page_bit_common mm/filemap.c:994 [inline] __lock_page+0x557/0x6f0 mm/filemap.c:1166 lock_page include/linux/pagemap.h:478 [inline] truncate_inode_pages_range+0x123e/0x1cc0 mm/truncate.c:399 truncate_inode_pages+0x24/0x30 mm/truncate.c:429 kill_bdev+0xbc/0xf0 fs/block_dev.c:98 __blkdev_put+0x183/0x7c0 fs/block_dev.c:1774 blkdev_put+0x85/0x4f0 fs/block_dev.c:1845 blkdev_close+0x91/0xc0 fs/block_dev.c:1852 __fput+0x333/0x7f0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:112 exit_task_work include/linux/task_work.h:21 [inline] do_exit+0xa52/0x1b40 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x7e8/0x17e0 kernel/signal.c:2334 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:808 exit_to_usermode_loop+0x224/0x300 arch/x86/entry/common.c:158 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x42f/0x500 arch/x86/entry/common.c:266 entry_SYSCALL_64_fastpath+0xbc/0xbe RIP: 0033:0x7f356fb3c310 RSP: 002b:00007ffc00aa6618 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffffc RBX: 0000000000000000 RCX: 00007f356fb3c310 RDX: 0000000000000400 RSI: 00000000011f4c58 RDI: 0000000000000003 RBP: 00000000011f4c30 R08: 0000000000000028 R09: 0000000000168000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000011f4030 R13: 0000000000000400 R14: 00000000011f4080 R15: 00000000011f4c48 Showing all locks held in the system: 2 locks held by khungtaskd/644: #0: (rcu_read_lock){....}, at: [] check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: (rcu_read_lock){....}, at: [] watchdog+0x1c5/0xd60 kernel/hung_task.c:249 #1: (tasklist_lock){.+.+}, at: [] debug_show_all_locks+0xd2/0x410 kernel/locking/lockdep.c:4552 2 locks held by getty/2956: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2957: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2958: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2959: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2960: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2961: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 2 locks held by getty/2962: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:367 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x2f2/0x1a40 drivers/tty/n_tty.c:2133 1 lock held by blkid/6427: #0: (&bdev->bd_mutex){+.+.}, at: [] __blkdev_put+0xa7/0x7c0 fs/block_dev.c:1767 1 lock held by blkid/6636: #0: (&bdev->bd_mutex){+.+.}, at: [] __blkdev_put+0xa7/0x7c0 fs/block_dev.c:1767 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 644 Comm: khungtaskd Not tainted 4.14.0-rc1+ #88 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 nmi_cpu_backtrace+0x20e/0x240 lib/nmi_backtrace.c:102 nmi_trigger_cpumask_backtrace+0x122/0x180 lib/nmi_backtrace.c:61 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37 trigger_all_cpu_backtrace include/linux/nmi.h:105 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0x90c/0xd60 kernel/hung_task.c:249 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.0-rc1+ #88 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffffffff85a2f380 task.stack: ffffffff85a00000 RIP: 0010:__trace_hardirqs_on_caller kernel/locking/lockdep.c:2891 [inline] RIP: 0010:trace_hardirqs_on_caller+0x1fe/0x5c0 kernel/locking/lockdep.c:2935 RSP: 0018:ffff8801db206fe8 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffffffff85a2f380 RCX: 0000000000000000 RDX: 1ffffffff0b45f79 RSI: 0000000000000000 RDI: ffffffff85a2fbc8 RBP: ffff8801db206ff8 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff84d45601 R13: ffff8801db225d88 R14: ffff8801db226460 R15: 1ffff1003b640e83 FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001f5bd78 CR3: 00000001d78d5000 CR4: 00000000001406f0 Call Trace: trace_hardirqs_on+0xd/0x10 kernel/locking/lockdep.c:2942 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x31/0xba kernel/locking/spinlock.c:191 rq_unlock_irqrestore kernel/sched/sched.h:1747 [inline] update_blocked_averages+0x154f/0x4a30 kernel/sched/fair.c:7043 rebalance_domains+0x145/0xcc0 kernel/sched/fair.c:8790 run_rebalance_domains+0x383/0x780 kernel/sched/fair.c:9051 __do_softirq+0x2bb/0xbd0 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1d3/0x210 kernel/softirq.c:405 scheduler_ipi+0x165/0x460 kernel/sched/core.c:1794 smp_reschedule_interrupt+0xf2/0x670 arch/x86/kernel/smp.c:277 reschedule_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:794 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:53 RSP: 0018:ffffffff85a07d10 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff02 RAX: dffffc0000000000 RBX: 1ffffffff0b40fa5 RCX: 0000000000000000 RDX: 1ffffffff0b59338 RSI: 0000000000000001 RDI: ffffffff85ac99c0 RBP: ffffffff85a07d10 R08: ffffffff857b3a60 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac99b0 R13: ffffffff85a07dc8 R14: 0000000000000000 R15: ffffffff85a2f380 arch_safe_halt arch/x86/include/asm/paravirt.h:93 [inline] default_idle+0xbf/0x460 arch/x86/kernel/process.c:341 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:332 default_idle_call+0x36/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x256/0x3b0 kernel/sched/idle.c:246 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:351 rest_init+0xed/0xf0 init/main.c:435 start_kernel+0x72e/0x754 init/main.c:710 x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:377 x86_64_start_kernel+0x77/0x7a arch/x86/kernel/head64.c:358 secondary_startup_64+0xa5/0xa5 arch/x86/kernel/head_64.S:235 Code: 00 85 c0 0f 85 38 02 00 00 48 8d bb 48 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ad 03 00 00 <48> 8d bb 40 08 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 a3 48