login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Christoph Lameter <clameter@...>, Rafael J. Wysocki <rjw@...>, Pawel Staszewski <pstaszewski@...>, LKML <linux-kernel@...>, Adrian Bunk <bunk@...>, Andrew Morton <akpm@...>, Natalie Protasevich <protasnb@...>
Date: Friday, March 28, 2008 - 1:27 pm

On Fri, 28 Mar 2008, Pekka Enberg wrote:

Dammit, NO.

The bug was that the commit I made (which was correct and robust) was then 
partially reverted by Christoph for no good reason. At that point, 
kmalloc_large() didn't even exist, so at that point the change was 
"technically correct" (since the only user of gfpflags really did end up 
clearing it somewhere deep in its callchain).

So when that original 3811dbf67162bd08412f1b0e02e554f353e93bdb happened, 
it wasn't an outright bug - but that doesn't make it right. That commit 
was always just a bug waiting to happen, because it just set things up for 
later problems by retaining that bit when it really shouldn't have been 
retained, and forcing all future callers to be careful. Which they 
obviously were not!

Yes, you can clear GFP_ZERO in multiple illogical places, and it will fix 
the bug. Or you can clear it in *one* place, that is in on the direct 
callchain from the person who actually does the memset(0), and even add a 
comment that says exactly what is going on.

So the fact is, commit 3811dbf67162bd08412f1b0e02e554f353e93bdb is and was 
total and utter crap. I've reverted it in my tree. It's crap not because 
it was buggy when it was put in, but because it was *fragile* when it was 
put in. And that fragility ended up causing a bug later.

I'm getting really tired of slub. It was supposed to be simpler code than 
slab, and yes, it's simpler, but it has been buggy as hell, and part of it 
has been that people just haven't been careful enough, and haven't written 
code to be defensive and easy-to-follow.

So the *last* thing we want to do is to clear GFP_ZERO in multiple subtle 
places based on new random code being added. We want to clear it at the 
top level, so that no other code never ever even has to _think_ about it!

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