UBI: fix missing scrub when there is a bit-flip
authorBhavesh Parekh <bparekh@nvidia.com>
Wed, 30 Nov 2011 12:13:42 +0000 (17:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:37 +0000 (17:24 -0800)
commit75947f78d026b6eb2c4f16c54042325f97e3288a
tree4d81b1db35ca49ad96149cb6ca58c73572f2d3a2
parent729a9768761809079d07c9716f656da20a14eb2f
UBI: fix missing scrub when there is a bit-flip

commit e801e128b2200c40a0ec236cf2330b2586b6e05a upstream.

Under some cases, when scrubbing the PEB if we did not get the lock on
the PEB it fails to scrub. Add that PEB again to the scrub list

Artem: minor amendments.

Signed-off-by: Bhavesh Parekh <bparekh@nvidia.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c