Re: Processes spinning forever, apparently in lock_timer_base()?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Matthias Hensler <matthias@...>, linux-kernel <linux-kernel@...>, Thomas Gleixner <tglx@...>, richard kennedy <richard@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Thursday, September 20, 2007 - 6:44 pm

On 09/20/2007 06:36 PM, Andrew Morton wrote:

Yikes! Simple fixes would be better.

Patch that is confirmed to fix the problem for this user is below, but
that one could cause other problems. I was looking for some band-aid
could be shown to be harmless...

http://lkml.org/lkml/2007/8/2/89:

------
--- linux-2.6.22.1/mm/page-writeback.c.orig	2007-07-30 16:36:09.000000000 +0100
+++ linux-2.6.22.1/mm/page-writeback.c	2007-07-31 16:26:43.000000000 +0100
@@ -250,6 +250,8 @@ static void balance_dirty_pages(struct a
 			pages_written += write_chunk - wbc.nr_to_write;
 			if (pages_written >= write_chunk)
 				break;		/* We've done our duty */
+			if (!wbc.encountered_congestion && wbc.nr_to_write > 0)
+				break;	/* didn't find enough to do */
 		}
 		congestion_wait(WRITE, HZ/10);
 	}

 

Reporter is in the CC: list.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Processes spinning forever, apparently in lock_timer_bas..., Chuck Ebbert, (Thu Sep 20, 6:44 pm)