From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <201010012116.o91LGSlt021122@imap1.linux-foundation.org> Subject: [patch 2/2] jffs2: use cond_resched() instead of yield() To: dwmw2@infradead.org From: akpm@linux-foundation.org Date: Fri, 01 Oct 2010 14:16:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Cc: Artem.Bityutskiy@nokia.com, dedekind@infradead.org, w.sang@pengutronix.de, linux-mtd@lists.infradead.org, akpm@linux-foundation.org, mingo@elte.hu List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wolfram Sang yield() has different semantics meanwhile and even causes RT-kernels to BUG. Replace the only appearance left in jffs2. Signed-off-by: Wolfram Sang Cc: Artem Bityutskiy Cc: Ingo Molnar Cc: David Woodhouse Cc: Artem Bityutskiy Signed-off-by: Andrew Morton --- fs/jffs2/erase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } _