UBI: handle write errors in WL worker
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 5 Dec 2008 11:37:02 +0000 (13:37 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 10 Dec 2008 12:20:00 +0000 (14:20 +0200)
commit3aba6fb06b7d8edefc7fe1d3ed601b6d73b9f697
treec2bb510a607b07399416ffac63cdd29c8f3c55c7
parent1f94b4d4c905563aef6472f3ef117af4ce46bd17
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