Message ID | 201010012116.o91LGSlt021122@imap1.linux-foundation.org |
---|---|
State | New, archived |
Headers | show |
On Fri, 2010-10-01 at 14:16 -0700, akpm@linux-foundation.org wrote: > From: Wolfram Sang <w.sang@pengutronix.de> > > yield() has different semantics meanwhile and even causes RT-kernels to > BUG. Replace the only appearance left in jffs2. > This patch is also in my l2-mtd-2.6.git tree.
On Sat, 02 Oct 2010 17:07:55 +0300 Artem Bityutskiy <dedekind1@gmail.com> wrote: > On Fri, 2010-10-01 at 14:16 -0700, akpm@linux-foundation.org wrote: > > From: Wolfram Sang <w.sang@pengutronix.de> > > > > yield() has different semantics meanwhile and even causes RT-kernels to > > BUG. Replace the only appearance left in jffs2. > > > > This patch is also in my l2-mtd-2.6.git tree. And I'll keep sending it and you'll keep telling me it's in your tree until this situation gets fixed.
diff -puN fs/jffs2/erase.c~jffs2-use-cond_resched-instead-of-yield fs/jffs2/erase.c --- a/fs/jffs2/erase.c~jffs2-use-cond_resched-instead-of-yield +++ a/fs/jffs2/erase.c @@ -151,7 +151,7 @@ int jffs2_erase_pending_blocks(struct jf } /* Be nice */ - yield(); + cond_resched(); mutex_lock(&c->erase_free_sem); spin_lock(&c->erase_completion_lock); }