sync() takes minutes while erasing

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Jul 2 08:58:06 EDT 2007


On Thu, 2007-06-28 at 20:02 +0100, David Woodhouse wrote:
> On Thu, 2007-06-28 at 20:59 +0200, Joakim Tjernlund wrote:
> > Thanks, this stop the complaints from the test team. They
> > don't like to wait a few mins every time they delete an old install
> > and reboot.
> 
> This is what the rest of us use 'flash_eraseall -j' for, btw :)
> 
> But I'll look into it. If we can do the erases from some other context
> it would be nice. Although pdflush_operation() doesn't seem to give us
> any way to _stop_ a pending call if we unmount.
> 

hmm, can't you make so that pdflush_operation() just erases one
block at a time? Then the longest you have to wait is just
the time it takes to finish one EB.

 Jocke



More information about the linux-mtd mailing list