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

Richard Weinberger richard at nod.at
Thu Oct 2 06:18:24 PDT 2014


Am 02.10.2014 15:05, schrieb Tanya Brokhman:
>> +#ifdef CONFIG_MTD_UBI_FASTMAP
>> +    flush_work(&ubi->fm_work);
> 
> flush_work returns bool. It might be useful to print that value for debugging.

Why would this be useful?
The sole purpose of this flush is having a barrier.
If flush_work() had to wait (returns true) for a pending work, fine.
If where was no work (returns false) to wait for, also fine. :)

Thanks,
//richard



More information about the linux-mtd mailing list