]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ubi: fastmap: Implement produce_free_peb()
authorRichard Weinberger <richard@nod.at>
Tue, 11 Aug 2015 21:27:44 +0000 (23:27 +0200)
committerRichard Weinberger <richard@nod.at>
Sat, 3 Oct 2015 21:25:30 +0000 (23:25 +0200)
commit1cb8f9776c7dcadc57885c6653943511d282633b
tree8ca9bb2c2e241511cdb93398dcadd245480801fe
parentbe186cc4de35fcfe766d2938c13ddf3935d6c159
ubi: fastmap: Implement produce_free_peb()

If fastmap requests a free PEB for a pool and UBI is busy
with erasing PEBs we need to offer a function to wait for one.
We can reuse produce_free_peb() from the non-fastmap WL code
but with different locking semantics.

Cc: stable@vger.kernel.org # 4.1.x-
Reported-and-tested-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap-wl.c