From b3ad772dcc318d20046ee684c11bd9df49ab7320 Mon Sep 17 00:00:00 2001 From: "Artem B. Bityuckiy" Date: Sun, 20 Mar 2005 21:43:26 +0000 Subject: [PATCH] --- yaml --- r: 4523 b: refs/heads/master c: 3cceb9f6cf433545b607451e5de7af2cd6cec0b5 h: refs/heads/master i: 4521: 96e3fbd12f4c952cd133231eb9753e8ed115115e 4519: d5e3dc440f8a1d0bc55d92ba187ea8d7da27866b v: v3 --- [refs] | 2 +- trunk/fs/jffs2/gc.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8b1209e49aa9..5d8741b2d5fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 437316d9b5ea142ca7ab9ef131c28506c407d1d6 +refs/heads/master: 3cceb9f6cf433545b607451e5de7af2cd6cec0b5 diff --git a/trunk/fs/jffs2/gc.c b/trunk/fs/jffs2/gc.c index 44fa7379098f..694bc90ad779 100644 --- a/trunk/fs/jffs2/gc.c +++ b/trunk/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 @@ static struct jffs2_eraseblock *jffs2_find_gc_block(struct jffs2_sb_info *c) } 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 */