Priority inversion when using MTD

Sekhar Nori nori.sekhar at gmail.com
Thu May 17 12:36:28 EDT 2007


On 5/17/07, David Woodhouse <dwmw2 at infradead.org> wrote:
> On Thu, 2007-05-17 at 18:50 +0530, Sekhar Nori wrote:
> > I have a high priority SCHED_FIFO task which runs out of a squashfs file system.
> > When this process needs to fetch a page from the flash (due to demand paging),
> > it is sometimes made to wait for another low priority SCHED_NORMAL
> > task which is doing an erase on some other mtd partition.
>  ...
> > Is there any way to avoid this scenario? Any help/pointers would be appreciated.
>
> mlockall(2)

But doing so for all SCHED_FIFO tasks would make the system run out of memory :(

-
Sekhar Nori




More information about the linux-mtd mailing list