diff options
author | Artem B. Bityuckiy <dedekind@infradead.org> | 2005-03-20 21:43:26 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 13:03:04 +0200 |
commit | 3cceb9f6cf433545b607451e5de7af2cd6cec0b5 (patch) | |
tree | cc9934231e9977bdd95d2a751bdd36649704af37 /fs/jffs2/gc.c | |
parent | 437316d9b5ea142ca7ab9ef131c28506c407d1d6 (diff) | |
download | linux-3cceb9f6cf433545b607451e5de7af2cd6cec0b5.tar.gz linux-3cceb9f6cf433545b607451e5de7af2cd6cec0b5.tar.bz2 linux-3cceb9f6cf433545b607451e5de7af2cd6cec0b5.zip |
[JFFS2] Prevent deadlock when flushing write buffer
Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/gc.c')
-rw-r--r-- | fs/jffs2/gc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jffs2/gc.c b/fs/jffs2/gc.c index 44fa7379098f..694bc90ad779 100644 --- a/fs/jffs2/gc.c +++ b/fs/jffs2/gc.c @@ -7,7 +7,7 @@ * * For licensing information, see the file 'LICENCE' in this directory. * - * $Id: gc.c,v 1.146 2005/03/20 17:45:25 dedekind Exp $ + * $Id: gc.c,v 1.147 2005/03/20 21:43:22 dedekind Exp $ * */ @@ -83,7 +83,9 @@ again: } 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 */ |