jffs2 deadlock on alloc_sem in jffs2_reserve_space

Thomas Gleixner tglx at linutronix.de
Wed Jul 28 01:48:14 EDT 2004


On Wed, 2004-07-28 at 04:16, Ben Gamsa wrote:
>
> 	f = jffs2_gc_fetch_inode(c, inum, nlink);
> 	if (IS_ERR(f))
> 		return PTR_ERR(f);
> 	if (!f)
> 		return 0;
> 
> 	ret = jffs2_garbage_collect_live(c, jeb, raw, f);
> 
> 	jffs2_gc_release_inode(c, f);
> 
>   release_sem:
> 	up(&c->alloc_sem);
> 
Sure, it has to release the semaphore. It's fixed in current CVS
already.

tglx








More information about the linux-mtd mailing list