]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/jffs2/erase.c
Merge branch 'master' into tk71
[mv-sheeva.git] / fs / jffs2 / erase.c
index abac961f617b88a739ad3bfbaa49233d45d9e6d4..e513f1913c1522a8e9e8dbc4f501a4804507d182 100644 (file)
@@ -151,7 +151,7 @@ int jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count)
                }
 
                /* Be nice */
-               yield();
+               cond_resched();
                mutex_lock(&c->erase_free_sem);
                spin_lock(&c->erase_completion_lock);
        }