UBI: Fastmap: Ensure that only one fastmap work is scheduled
authorRichard Weinberger <richard@nod.at>
Tue, 23 Sep 2014 17:29:05 +0000 (19:29 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 18:30:54 +0000 (19:30 +0100)
If the WL pool runs out of PEBs we schedule a fastmap write
to refill it as soon as possible.
Ensure that only one at a time is scheduled otherwise we might end in
a fastmap write storm because writing the fastmap can schedule another
write if bitflips are detected.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Tanya Brokhman <tlinder@codeaurora.org>
Reviewed-by: Guido Martínez <guido@vanguardiasur.com.ar>
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c

Simple merge
Simple merge