Re: 2.6.32-rc4ish: task umount blocked for more than 120 secondsafter USB drive removal

From: Andrew Morton
Date: Tue Nov 03 2009 - 18:18:38 EST


On Tue, 20 Oct 2009 23:26:17 -0600
Robert Hancock <hancockrwd@xxxxxxxxx> wrote:

> Running a post-2.6.32-rc4 git kernel, and just unmounted a USB drive
> after writing a bunch of data to it, then pulled the plug after I
> thought it had finished unmounting, but apparently it hadn't.. Ran into
> a hung task warning that repeats every 120 seconds, the umount command
> for the drive is stuck in D state.
>
> The full SysRq-T output is shown at the bottom.. any ideas what it's
> waiting for?

At a guess I'd say the new per-bdi writeback stuff blew up. Is this
still happening in current mainline?

> Oct 20 21:42:42 newcastle kernel: usb 1-1.6: USB disconnect, address 5
> Oct 20 21:42:42 newcastle gnome-keyring-daemon[2598]: removing removable
> location: volume_uuid_01E0_9221
> Oct 20 21:45:26 newcastle kernel: INFO: task umount:5380 blocked for
> more than 120 seconds.
> Oct 20 21:45:26 newcastle kernel: "echo 0 >
> /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> Oct 20 21:45:26 newcastle kernel: umount D 0000000000000002 0
> 5380 2853 0x00000080
> Oct 20 21:45:26 newcastle kernel: ffff880118651bc8 0000000000000086
> ffff880118651b68 00000000d54e0b08
> Oct 20 21:45:26 newcastle kernel: 00000000000004f1 ffff88013bbd9798
> ffff8800282558b0 ffff880118651fd8
> Oct 20 21:45:26 newcastle kernel: ffff880118651fd8 ffff8800504cb280
> 000000000000fb38 0000000000015840
> Oct 20 21:45:26 newcastle kernel: Call Trace:
> Oct 20 21:45:26 newcastle kernel: [<ffffffff8117d534>] ?
> bdi_sched_wait+0x0/0x39

It's remarkable how much harder these traces are to read post-wordwrapping.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/