[RFC] [PATCH] UBI: refine wear leveling logic
Artem Bityutskiy
Artem.Bityutskiy at nokia.com
Fri Mar 30 08:23:59 EDT 2007
Alexander Schmidt wrote:
> While writing this i assumed that erase and WL procedures are performed
> sequentially (either by the background thread or, if the bgt is disabled,
> by the produce_free_peb() function). Thank to your comment below I now
> realised that erase/wl procedures could happen concurrently if the free
> tree is empty and there are pending works (this is the only way that
> could lead to your error scenario, right?).
Yes, kind of.
> If so then i propose to make get_peb() wait until the bgt produces a free
> peb and not mix synchronous/asynchronous operations, as this would make
> the code easier, IMO.
It already does this AFAIK.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list