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)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 30 Nov 2011 12:13:42 +0000 (17:43 +0530)
commite801e128b2200c40a0ec236cf2330b2586b6e05a
tree2f348a09690fea8484d2a4310c1f979f8156b46a
parenteaecf43a6970c8d0ef54a31427c82a99e4863fe8
UBI: fix missing scrub when there is a bit-flip

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.

Cc: stable@kernel.org [2.6.31+]
Signed-off-by: Bhavesh Parekh <bparekh@nvidia.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c