Re-entrancy of flash erase/write

David Woodhouse dwmw2 at infradead.org
Mon Feb 25 12:32:46 EST 2002


rob at sysgo.de said:
>  What mechanism is there to avoid writes during erase suspend ? I have
> seen the problem in situations where the JFFS2 GC thread was erasing
> while another process (tar in my case) was writing to a *different
> partition* in the same chip. (Maybe that is a hint ?) Introducing the
> set_vpp counter reliably solved this.

All the partition code does is add an offset and call into the original 
underlying flash driver. So it just looks like two concurrent calls to the 
one driver, and the state machine ought to deal with that correctly.

--
dwmw2






More information about the linux-mtd mailing list