Re: Continuous SD IO causes hung task messages

From: Ulf Hansson
Date: Tue Aug 27 2019 - 09:56:03 EST


On Tue, 27 Aug 2019 at 15:43, Russell King - ARM Linux admin
<linux@xxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> While dd'ing the contents of a SD card, I get hung task timeout
> messages as per below. However, the dd is making progress. Any
> ideas?
>
> Presumably, mmc_rescan doesn't get a look-in while IO is progressing
> for the card?

Is it a regression?

There not much of recent mmc core and mmc block changes, that I can
think of at this point.

>
> ARM64 host, Macchiatobin, uSD card.

What mmc host driver is it? mmci?

Kind regards
Uffe

>
> Thanks.
>
> root@arm-d06300000000:~# dd if=/dev/mmcblk1 | md5sum
> INFO: task kworker/2:1:52 blocked for more than 120 seconds.
> Not tainted 5.2.0+ #309
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> kworker/2:1 D 0 52 2 0x00000028
> Workqueue: events_freezable mmc_rescan
> Call trace:
> __switch_to+0xb0/0x198
> __schedule+0x22c/0x604
> schedule+0x38/0xc8
> __mmc_claim_host+0xcc/0x1ec
> mmc_get_card+0x30/0x3c
> mmc_sd_detect+0x1c/0x78
> mmc_rescan+0x1c4/0x35c
> process_one_work+0x14c/0x408
> worker_thread+0x140/0x3f4
> kthread+0xfc/0x128
> ret_from_fork+0x10/0x18
> INFO: task kworker/2:1:52 blocked for more than 120 seconds.
> Not tainted 5.2.0+ #309
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> kworker/2:1 D 0 52 2 0x00000028
> Workqueue: events_freezable mmc_rescan
> Call trace:
> __switch_to+0xb0/0x198
> __schedule+0x22c/0x604
> schedule+0x38/0xc8
> __mmc_claim_host+0xcc/0x1ec
> mmc_get_card+0x30/0x3c
> mmc_sd_detect+0x1c/0x78
> mmc_rescan+0x1c4/0x35c
> process_one_work+0x14c/0x408
> worker_thread+0x140/0x3f4
> kthread+0xfc/0x128
> ret_from_fork+0x10/0x18
> INFO: task kworker/2:1:52 blocked for more than 241 seconds.
> Not tainted 5.2.0+ #309
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> kworker/2:1 D 0 52 2 0x00000028
> Workqueue: events_freezable mmc_rescan
> Call trace:
> __switch_to+0xb0/0x198
> __schedule+0x22c/0x604
> schedule+0x38/0xc8
> __mmc_claim_host+0xcc/0x1ec
> mmc_get_card+0x30/0x3c
> mmc_sd_detect+0x1c/0x78
> mmc_rescan+0x1c4/0x35c
> process_one_work+0x14c/0x408
> worker_thread+0x140/0x3f4
> kthread+0xfc/0x128
> ret_from_fork+0x10/0x18
> INFO: task kworker/2:1:52 blocked for more than 362 seconds.
> Not tainted 5.2.0+ #309
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> kworker/2:1 D 0 52 2 0x00000028
> Workqueue: events_freezable mmc_rescan
> Call trace:
> __switch_to+0xb0/0x198
> __schedule+0x22c/0x604
> schedule+0x38/0xc8
> __mmc_claim_host+0xcc/0x1ec
> mmc_get_card+0x30/0x3c
> mmc_sd_detect+0x1c/0x78
> mmc_rescan+0x1c4/0x35c
> process_one_work+0x14c/0x408
> worker_thread+0x140/0x3f4
> kthread+0xfc/0x128
> ret_from_fork+0x10/0x18
>
> --
> RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
> According to speedtest.net: 11.9Mbps down 500kbps up