Message ID | 1415790108-17340-1-git-send-email-chenjie6@huawei.com |
---|---|
State | Not Applicable |
Delegated to: | David Woodhouse |
Headers | show |
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c index b6bd4af..f689bb1 100644 --- a/fs/jffs2/nodemgmt.c +++ b/fs/jffs2/nodemgmt.c @@ -322,6 +322,7 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c) spin_unlock(&c->erase_completion_lock); /* Don't wait for it; just erase one right now */ + cond_resched(); jffs2_erase_pending_blocks(c, 1); spin_lock(&c->erase_completion_lock);