sync() takes minutes while erasing

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Aug 6 12:18:55 EDT 2007


On Mon, 2007-07-02 at 14:58 +0200, Joakim Tjernlund wrote:
> 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

Hi David

Had any time to think on the above?

   Jocke



More information about the linux-mtd mailing list