Re: 2.6.23-rc6-mm1 panic (memory controller issue ?)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <balbir@...>, <clameter@...>, lkml <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 8:31 pm

On Tue, 2007-09-18 at 15:21 -0700, Badari Pulavarty wrote:

I think, I found the issue. I am still running tests to
verify. Does this sound correct ?

Thanks,
Badari

Need to strip __GFP_HIGHMEM flag while passing to mem_container_cache_charge().

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
 mm/filemap.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6.23-rc6/mm/filemap.c
===================================================================
--- linux-2.6.23-rc6.orig/mm/filemap.c	2007-09-18 12:43:54.000000000 -0700
+++ linux-2.6.23-rc6/mm/filemap.c	2007-09-18 19:14:44.000000000 -0700
@@ -441,7 +441,8 @@ int filemap_write_and_wait_range(struct 
 int add_to_page_cache(struct page *page, struct address_space *mapping,
 		pgoff_t offset, gfp_t gfp_mask)
 {
-	int error = mem_container_cache_charge(page, current->mm, gfp_mask);
+	int error = mem_container_cache_charge(page, current->mm,
+			gfp_mask & ~__GFP_HIGHMEM);
 	if (error)
 		goto out;
 


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc6-mm1 panic (memory controller issue ?), Badari Pulavarty, (Tue Sep 18, 6:21 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Badari Pulavarty, (Tue Sep 18, 8:31 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Christoph Lameter, (Wed Sep 19, 1:24 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Balbir Singh, (Tue Sep 18, 9:53 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Christoph Lameter, (Wed Sep 19, 1:25 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Balbir Singh, (Wed Sep 19, 2:18 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Christoph Lameter, (Wed Sep 19, 2:54 pm)
Re: 2.6.23-rc6-mm1 panic (memory controller issue ?), Balbir Singh, (Wed Sep 19, 3:04 pm)