UBI Fastmap fixes for 3.7

Zach Sadecki zsadecki at itwatchdogs.com
Tue Dec 4 09:45:18 EST 2012

On 12/03/2012 01:57 PM, Richard Weinberger wrote:
> This patch series contains two brown-paper-bag-bugfixes.
> I'm very sorry for them!
> [PATCH 1/2] ubi: Remove PEB from free tree in get_peb_for_wl()
> This one fixes a very odd issue with fastmap disabled.
> With fastmap disabled get_peb_for_wl() did not remove PEBs from
> the free list. Therefore the free, used and scrub trees got corrupted.
> [PATCH 2/2] ubi: Dont call ubi_self_check_all_ff() in __wl_get_peb()
> The issue fixed by that patch is also very nasty. I missed that
> ubi_self_check_all_ff() can sleep. So, we cannot call it from
> __wl_get_peb().
> Thanks,
> //richard
Thanks, guys.  An overnight test run has shown that these patches have 
fixed the UBI problems on my board.  Something else odd is happening, 
but that's for another thread...

More information about the linux-mtd mailing list