[PATCH][MTD] mtdpart.c: allow other drivers to get physical address of partition
Carsten Otte
cotte at de.ibm.com
Fri Aug 3 03:59:17 EDT 2007
Jared Hulbert wrote:
> Maybe I wasn't so clear. Assuming the MTD is going to do an erase you would:
>
> (a) zap all page affected by block erase
> (b) identify all pte's mapped to the affected region
> (c) modify these pte's so they now trigger a fault
> (d) wait for completion of erase
> (c) reestablish valid pte mappings
Ah. Now I can see the light. Sounds like an acceptable approach to me.
> If you get a fault it gets routed to the filesystem .fault or
> something like that. The .fault routine can:
> (a) suspend the erase
> (b) copy the page to RAM
> (c) update the pte to point to RAM
> (d) resume the erase
> -or-
> (a) suspend the erase
> (b) reenable the pte
> (c) wait a short time
> (d) disable pte again
> (e) resume the erase
Why don't we wait til the erase is completed?
so long,
Carsten
More information about the linux-mtd
mailing list