Commit Message

The fastmap update code might erase the current fastmap anchor PEB
in case it doesn't find any new free PEB. When a power cut happens
in this situation we must not have any outdated fastmap anchor PEB
on the device, because that would be used to attach during next
boot.
The easiest way to make that sure is to erase all outdated fastmap
anchor PEBs synchronously during attach.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/mtd/ubi/wl.c | 77 ++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 57 insertions(+), 20 deletions(-)

Comments

Am Dienstag, 5. Dezember 2017, 16:01:20 CET schrieb Sascha Hauer:
> The fastmap update code might erase the current fastmap anchor PEB> in case it doesn't find any new free PEB. When a power cut happens> in this situation we must not have any outdated fastmap anchor PEB> on the device, because that would be used to attach during next> boot.> The easiest way to make that sure is to erase all outdated fastmap> anchor PEBs synchronously during attach.> > Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Richard Weinberger <richard@nod.at>
Thanks,
//richard

Am Mittwoch, 10. Januar 2018, 15:16:17 CET schrieb Sascha Hauer:
> +Cc Boris> > Hi Boris and all,> > I can't find this patch in any tree. Boris, will you take it?
It will be part of the next merge window and tagged for stable.
Thanks,
//richard