UBI/UBIFS interrupted write page handling

Artem Bityutskiy dedekind1 at gmail.com
Mon Oct 18 06:21:13 EDT 2010


On Mon, 2010-10-04 at 15:12 +0200, Matthieu CASTET wrote:
> Artem Bityutskiy a écrit :
> > On Tue, 2010-09-28 at 09:47 +0200, Matthieu CASTET wrote:
> >> Artem Bityutskiy a écrit :
> >>> On Sun, 2010-09-26 at 20:58 +0300, Artem Bityutskiy wrote:
> >>>
> >> That's better : interrupt erased page are not put anymore in corrupted list.
> >> But I have problem with interrupt write :
> >> this night the test crashed [1].
> > 
> > Yeah, this should be fixed by forcing LEB refresh for the last LEBs of
> > journal heads. This problem exists long time. I'll work on this and send
> > you patches.
> UBI will need also some patch.
> For example in case of wear leveling, ubi could move a leb from a peb to 
> another and the write can be interrupted.

Hmm, yeah, we have CRC in this case and we rely on CRC. However, if the
write to the last page was interrupted, it can be unstable and can
sometimes be read correctly, but sometimes incorrectly. So UBI should
refresh such PEBs.

I guess it is easier to start with UBI first.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list