Re-entrancy of flash erase/write

David Woodhouse dwmw2 at infradead.org
Fri Feb 22 12:06:52 EST 2002


rob at sysgo.de said:
>  Am I right in assuming that it is not possible to erase and/or write
> different blocks of the same flash chip concurrently ?

No - on some chips you can. Not most though.

> If so, where is the lock in the MTD code that would prevent concurrent
> execution of erase/write on the same chip by multiple processes ? 

In the chip drivers themselves. Grep for TASK_UNINTERRUPTIBLE in 
cfi_cmdset_0001.c, for example.


--
dwmw2






More information about the linux-mtd mailing list