Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
David Woodhouse
3866f673 d2ac467a

+1 -1
+1 -1
fs/jffs2/erase.c
··· 151 151 } 152 152 153 153 /* Be nice */ 154 - yield(); 154 + cond_resched(); 155 155 mutex_lock(&c->erase_free_sem); 156 156 spin_lock(&c->erase_completion_lock); 157 157 }