UBI: fix missing scrub when there is a bit-flip
commit73461014f2de68f1dbca13897af0feb77872b8f5
authorBhavesh Parekh <bparekh@nvidia.com>
Wed, 30 Nov 2011 12:13:42 +0000 (30 17:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:17 +0000 (25 16:13 -0800)
tree7201eb28a7ddc1bccf1e7863e41aaab09ce7592f
parent51437e46e24caa74d45a30a0eb130d74bdf07db9
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