]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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)
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>

No differences found