mtd_info->size again (lengthy)
Bruce_Leonard at selinc.com
Bruce_Leonard at selinc.com
Wed Jun 11 03:46:30 EDT 2008
>
> > I think I'm in over my head :(. Are you suggesting that the direction
we
> > want to move is to change the MTD layer over to function the same way
as
> > the Block I/O layer?
>
> Either that or move the block io layer to function the same way as mtd.
> Effectively the two should meet somewhere in between, but it's going to
> be a lot closer to current block io than current mtd. We want all the
> goodies of both worlds, and block io simply has more.
>
Okay, that makes sense. I think I'm actually starting to understand some
of this :\. How tied up in the block layer is the I/O scheduler? With my
limited understanding, it seems that is going to be the real sticking
point in moving block and mtd io towards each other. If the I/O scheduler
is largely decoupled from bio it may make this easier than I think.
>
> That's ok. I don't expect you to do it all. What I would like is to
> solve your problem in a way that brings us closer to block io instead of
> farther away.
>
Fortunately, I think I'm well on my way to doing that. I've taken your
code snippets (okay pretty much stolen them wholesale, I hope that's okay)
and started makeing changes based on them. The changes aren't really
radical, I don't make use of the struct fio_vec and I'm just making
submit_fio() a wrapper around existing NAND functions, simple stuff like
that for now. That will at least get me working and maybe some proof of
concept. I hope to have a patch set in the next day or two for the list
to look over.
Thanks again for all the help.
Bruce
More information about the linux-mtd
mailing list