projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ac467
)
jffs2: use cond_resched() instead of yield()
author
Wolfram Sang
<w.sang@pengutronix.de>
Wed, 1 Sep 2010 16:03:41 +0000
(18:03 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 24 Oct 2010 23:14:01 +0000
(
00:14
+0100)
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>
fs/jffs2/erase.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/erase.c
b/fs/jffs2/erase.c
index
abac961
..
e513f19
100644
(file)
--- 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 */
-
yiel
d();
+
cond_resche
d();
mutex_lock(&c->erase_free_sem);
spin_lock(&c->erase_completion_lock);
}