[PATCH] Fix hanging close for /dev/mtd

Josh Boyer jwboyer at linux.vnet.ibm.com
Wed Jun 13 07:44:12 EDT 2007


On Wed, 2007-06-13 at 11:53 +0200, Joakim Tjernlund wrote:
> Figured I should send this on its own.
> 
> Stracing a process using /dev/mtd shows that
> it sometimes hangs for a long time when pdflush is erasing
> sectors. /dev/mtd* close method calls the mtd->sync method
> which can hang for a long time(minutes).
> 
> Futher, the sync method "syncs" all flash chips. It should
> only sync the chips that a /dev/mtd* spans.
> Also, the mtdchar/mtdblock drivers does not need to
> call sync for readonly mappings.

So were you going to submit a separate patch for those issues?

josh




More information about the linux-mtd mailing list