diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-09-01 20:03:41 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-25 03:14:01 +0400 |
commit | 3866f673ebd86e5be2533923f5c0aed91fe1669f (patch) | |
tree | ad86078472f545ddb7a607d1e7b115472855dd1d /fs/jffs2 | |
parent | d2ac467a108400ff1ae682a423c7d41265e62d47 (diff) | |
download | linux-3866f673ebd86e5be2533923f5c0aed91fe1669f.tar.xz |
jffs2: use cond_resched() instead of yield()
yield() has different semantics meanwhile and even causes RT-kernels to
BUG. Replace the only appearance left in jffs2.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2')
-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 abac961f617b..e513f1913c15 100644 --- a/fs/jffs2/erase.c +++ b/fs/jffs2/erase.c @@ -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); } |