UBI: handle write errors in WL worker
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 5 Dec 2008 11:37:02 +0000 (13:37 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jul 2009 13:04:11 +0000 (16:04 +0300)
commitb9495234b0d00810def6b9c4dc463a3cc9677fc2
tree5068d800727253e86b8c2f542f288c4b1901c795
parent398760c498084dbbe110fc19a8840d793ad1b988
UBI: handle write errors in WL worker

When a PEB is moved and a write error happens, UBI switches
to R/O mode, which is wrong, because we just copy the data
and may select a different PEB and re-try this. This patch
fixes WL worker's behavior.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/wl.c