Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Saturday, March 29, 2008 - 1:42 pm

On Fri, 28 Mar 2008, Linus Torvalds wrote:


kmap check for PageHighmem and does not do a kmap for regular pages.
So this is actually okay. If the allocation that was performed does not 
allow GFP_HIGHMEM then the kmap will never use a real mapping. The check 
should not trigger.


Yes it uses its own logic if the object is managed by SLUB but not if the 
object is too big and/or the allocation forwarded to the page allocator 
or for other internal allocations of buffers etc.
 

Admitting something that is not true is rather difficult.


So what you want is to forbid any use of

	alloc_pages(__GFP_ZERO|...)

from an interrupt context? That works fine on most platforms and used to 
work fine on x86 as well until the check was added on January 30th.

If we really want this then the check in prep_zero_page should be changed 
too:

---
 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c	2008-03-29 13:40:42.166669333 -0700
+++ linux-2.6/mm/page_alloc.c	2008-03-29 13:41:21.039168276 -0700
@@ -317,7 +317,7 @@ static inline void prep_zero_page(struct
 	 * clear_highpage() will use KM_USER0, so it's a bug to use __GFP_ZERO
 	 * and __GFP_HIGHMEM from hard or soft interrupt context.
 	 */
-	VM_BUG_ON((gfp_flags & __GFP_HIGHMEM) && in_interrupt());
+	VM_BUG_ON(in_interrupt());
 	for (i = 0; i < (1 << order); i++)
 		clear_highpage(page + i);
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Thu Mar 27, 3:53 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Carlos R. Mafra, (Thu Mar 27, 5:18 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Thu Mar 27, 5:23 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Thu Mar 27, 7:30 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Thu Mar 27, 8:24 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Thu Mar 27, 9:00 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Thomas Gleixner, (Fri Mar 28, 3:24 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Paweł Staszewski, (Fri Mar 28, 3:48 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Thomas Gleixner, (Fri Mar 28, 3:58 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Peter Zijlstra, (Fri Mar 28, 4:00 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Adrian Bunk, (Fri Mar 28, 4:13 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Thomas Gleixner, (Fri Mar 28, 4:16 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Haavard Skinnemoen, (Fri Mar 28, 4:29 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Adrian Bunk, (Fri Mar 28, 4:31 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Peter Zijlstra, (Fri Mar 28, 4:44 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 9:10 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 9:11 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 9:12 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 9:17 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Thomas Gleixner, (Fri Mar 28, 9:18 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 9:47 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Adrian Bunk, (Fri Mar 28, 10:06 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Pekka Enberg, (Fri Mar 28, 10:15 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 10:27 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Adrian Bunk, (Fri Mar 28, 10:36 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Andrew Morton, (Fri Mar 28, 10:46 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Pekka Enberg, (Fri Mar 28, 11:08 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 11:20 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Fri Mar 28, 11:33 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Fri Mar 28, 11:37 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Fri Mar 28, 11:38 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Andrew Morton, (Fri Mar 28, 11:47 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Fri Mar 28, 11:53 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 12:25 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 12:32 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 12:37 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 12:59 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Pekka Enberg, (Fri Mar 28, 12:59 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Fri Mar 28, 1:24 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Ingo Molnar, (Fri Mar 28, 1:33 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Ingo Molnar, (Fri Mar 28, 1:42 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 2:57 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 3:28 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 3:33 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Fri Mar 28, 3:37 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Sat Mar 29, 1:42 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Linus Torvalds, (Sat Mar 29, 2:29 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Pekka Enberg, (Sat Mar 29, 4:52 pm)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Kamalesh Babulal, (Mon Mar 31, 3:14 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Mon Mar 31, 5:10 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Ingo Molnar, (Mon Mar 31, 6:34 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Mon Mar 31, 11:45 am)
Re: 2.6.25-rc7-git2: Reported regressions from 2.6.24, Christoph Lameter, (Mon Mar 31, 11:56 am)