diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2007-06-26 17:32:10 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-06-28 13:37:48 -0400 |
commit | fd5324909e410a3202c1b01bd507c2dfba58fca5 (patch) | |
tree | 8a92d922c5ad4338c39a1fd366ef0e38f6c6419f /fs/jffs2/erase.c | |
parent | b75ae8603568ae18f270213693758c78fb8a29ff (diff) |
[JFFS2] Fix hanging close for /dev/mtd character device.
When pdflush is erasing lots of sectors, drivers calling
mtd->sync will hang until all blocks are erased. Be nicer.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/erase.c')
-rw-r--r-- | fs/jffs2/erase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c index 66e7c2f1e644..bdab9bc51d65 100644 --- a/fs/jffs2/erase.c +++ b/fs/jffs2/erase.c | |||
@@ -142,7 +142,7 @@ void jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | /* Be nice */ | 144 | /* Be nice */ |
145 | cond_resched(); | 145 | yield(); |
146 | spin_lock(&c->erase_completion_lock); | 146 | spin_lock(&c->erase_completion_lock); |
147 | } | 147 | } |
148 | 148 | ||