Re: Re-entrancy of flash erase/write

David Woodhouse
2002-02-25T17:21:30Z

rob@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