[PATCH 1/4] UBI: Ensure that all fastmap work is done upon WL shutdown

Richard Weinberger richard at nod.at
Mon Sep 29 23:58:18 PDT 2014


Am 30.09.2014 08:26, schrieb Artem Bityutskiy:
> On Tue, 2014-09-30 at 00:20 +0200, Richard Weinberger wrote:
>> ...otherwise the deferred work might run after datastructures
>> got freed and corrupt memory.
> 
> How can this happend? The background thread is stopped by this time
> already, so what are the other possibilities? And why is this
> fastmap-only?

This has nothing do to with the background thread.
Fastmap has a work queue. If one fastmap work has been
scheuled we have to wait for it.

Thanks,
//richard



More information about the linux-mtd mailing list