Hung kernel on SD writeback while suspending to RAM
Matt Reimer
mattjreimer at gmail.com
Thu Jun 17 12:54:19 EDT 2010
On Thu, Jun 17, 2010 at 9:25 AM, Eric Bénard <eric at eukrea.com> wrote:
> Hi,
>
> Le 15/06/2010 09:58, Alex Gonzalez a écrit :
>>
>> I am looking into suspend to RAM on a Freescale MX51 running a 2.6.31
>> kernel. The
>> system suspends and resumes OK except when an SD card is mounted.
>>
>> What happens then is that it finds a page which is being written to disk
>> (writeback flag is set), so it waits forever in uninterruptible state
>> for the write to finish, which never happens.
>>
>> I was expecting the filesystem sync previous to the tasks freezing to
>> have written all page caches to disk.
>>
>> Any suggestion as to how to debug this forward?
>>
> I think you need to enable
> [ ] Assume MMC/SD cards are non-removable (DANGEROUS)
> in order to be able to suspend / resume a mounted SDCard.
Also see the thread "[PATCH] Fix the outstanding issue with hangs on
insert/removal of mmc cards" on linux-mmc:
http://article.gmane.org/gmane.linux.kernel.mmc/2233
Matt
More information about the linux-arm-kernel
mailing list