jffs2 kernel dump with 2.6.22-rc7

Zac Medico zmedico at gmail.com
Sat Aug 18 17:08:36 EDT 2007


giulio fedel wrote:
> In jffs2_do_unlink() in fs/jffs2/write.c
> the jffs2_complete_reservation(c) is called even if 
> jffs2_reserve_space() is not called. This cause an unmatched 
> up(&c->alloc_sem) so the locking mechanism does not work.
> People using MTD_CAP_NORFLASH flash _and_ CONFIG_JFFS2_SUMMARY do not 
> see the problem (see  os-linux.h for the definition of 
> jffs2_can_mark_obsolete(c)).
> 
> I think this is your problem (it was the mine).

I can confirm that your patch solves the problem for me. I've been
unable to use jffs2 since 2.6.22 because of this problem. Thanks for
the fix!

Zac



More information about the linux-mtd mailing list