]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commit19371d73c9bd31a8e634ec5a80fc19fcd7714481
treee04e6910c0c98500f74afb8b92cb060404518df1
parentab6de685221a95392e46d75d0651ac08b8a57689
UBI: Fastmap: Ensure that only one fastmap work is scheduled

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