lkml.org 
[lkml]   [2001]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: VM-related Oops: 2.4.15pre1
On Fri, Nov 16, 2001 at 02:23:44PM -0800, Simon Kirby wrote:
> This box has Oopsed twice but is still running. Both Oopses followed a
> BUG() report (same in both cases):
>
> kernel BUG at page_alloc.c:76!
>
> Which maps to:
>
> if (page->mapping)
> BUG();
>
> ...in __free_pages_ok() in mm/page_alloc.c.

I think this one liner (diffed against 2.4.14) could fix this Oops:

--- mm/vmscan.c.vanilla Sat Nov 17 23:37:01 2001
+++ mm/vmscan.c Sat Nov 17 23:39:04 2001
@@ -414,10 +414,9 @@
* the page as well.
*/
if (page->buffers) {
- spin_unlock(&pagemap_lru_lock);
-
/* avoid to free a locked page */
page_cache_get(page);
+ spin_unlock(&pagemap_lru_lock);

if (try_to_free_buffers(page, gfp_mask)) {
if (!page->mapping) {
regards Christian

--
THAT'S ALL FOLKS!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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