mtd/fs/jffs2 gc.c,1.146,1.147
Artem Bityuckiy
dedekind at infradead.org
Sun Mar 20 16:43:26 EST 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv27212
Modified Files:
gc.c
Log Message:
Prevent deadlock when flushing wbuf.
Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/gc.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -r1.146 -r1.147
--- gc.c 20 Mar 2005 17:45:25 -0000 1.146
+++ gc.c 20 Mar 2005 21:43:22 -0000 1.147
@@ -83,7 +83,9 @@
} else if (!list_empty(&c->erasable_pending_wbuf_list)) {
/* There are blocks are wating for the wbuf sync */
D1(printk(KERN_DEBUG "Synching wbuf in order to reuse erasable_pending_wbuf_list blocks\n"));
+ spin_unlock(&c->erase_completion_lock);
jffs2_flush_wbuf_pad(c);
+ spin_lock(&c->erase_completion_lock);
goto again;
} else {
/* Eep. All were empty */
More information about the linux-mtd-cvs
mailing list