mtdchar.c and vmalloc

Alice Hennessy ahennessy at
Thu Jan 4 14:31:18 EST 2001


During  stress testing,  I ran into a data corruption problem that  went away
after I changed vmalloc to
kmalloc  in mtd_read and mtd_write functions (mtdchar.c).   I added a loop to
the code so that malloc size
doesn't exceed the kmalloc maximum of 128k bytes.
Seems to work fine now.

Does this make sense? Anyone else see this problem?   Any opinions if this is
an ok solution until
kiovec or something else is implemented?


To unsubscribe, send "unsubscribe mtd" to majordomo at

More information about the linux-mtd mailing list