mmc removal and file system access mutex

From: sasin
Date: Wed Apr 01 2009 - 09:14:40 EST


Hi,

I am running into crashes/hangs when repeatedly removing/reinserting an
MMC card while reading a file on the card. The card is automatically
unmounted on removal and remounted on insertion at the same mount point.

The hang was caused by elv_next_request in mmc_request repeatedly
presenting the same request on a dead queue. The crash is caused by the
file system read track accessing the freed request queue or some other
structure element associated with the block device that was removed.
Isn't there some form of mutex preventing this?

I am using 2.6.24 on ARM926 - sorry for using such an outdated version
:-(

Best regards,
Sasi
--
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/