UBI: fix missing scrub when there is a bit-flip
commit7587b142d2d059f3e5fe7b8e8053c7aeed1e5108
authorBhavesh Parekh <bparekh@nvidia.com>
Wed, 30 Nov 2011 12:13:42 +0000 (30 17:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Jan 2012 15:31:55 +0000 (18 07:31 -0800)
tree7f49ee33dfc322a0473a8140010d6b93fa4a6af0
parent9a399c87c36cdd84032b297189869b07ebb5fa33
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