Commit 3866f673ebd86e5be2533923f5c0aed91fe1669f

Authored by Wolfram Sang
Committed by David Woodhouse
1 parent d2ac467a10

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -151,7 +151,7 @@
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 }