lkml.org 
[lkml]   [1997]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: kernel 2.0.30

Hubert, can you try this patch instead, trigger the high stress
situations you describe, and let me know what the kernel messages say?
Thanks.

--- mm/vmscan.c.~1~ Thu May 1 00:31:31 1997
+++ mm/vmscan.c Mon May 5 04:02:40 1997
@@ -340,6 +340,7 @@
stop = 3;
if (wait)
stop = 0;
+we_slept:
switch (state) {
do {
case 0:
@@ -357,7 +358,13 @@
i--;
} while ((i - stop) >= 0);
}
- return 0;
+ /* This should never return failure, instead it should sleep
+ * and try again.
+ */
+ printk("try_to_free_page: state(%d) stop(%d) i(%d) sleep instead of fail\n");
+ schedule();
+ stop = 9;
+ goto we_slept;
}


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.052 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site