login
Header Space

 
 

Re: GFP_ATOMIC page allocation failures.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Chris Snook <csnook@...>, Dave Jones <davej@...>, Nick Piggin <nickpiggin@...>, Linux Kernel <linux-kernel@...>, NetDev <netdev@...>, David Miller <davem@...>, Linus Torvalds <torvalds@...>
Date: Wednesday, April 2, 2008 - 1:21 pm

Andrew Morton wrote:


Do you people hear what you're saying???

I respectfully but strongly disagree with this.

We do __not__ need a whitelist (__GFP_NOWARN) of drivers that handle 
allocation failures properly.  That's a long list, a maintenance 
nightmare, and it is punishing good behavior.

It has been true for over a decade that allocations should be checked 
for NULL, and GFP_ATOMIC allocations MUST be checked for NULL.

Let's not crap all over good drivers, because a few bad apples don't 
have the proper checks.

Or at the very least, this TOTALLY BOGUS spew from working drivers 
should not be foisted upon users.  Every time a working driver complains 
about this -- as in the examples here -- the value of the warning 
decreases to noise.

And the solution to noise is not _more noise_ (adding 'nowarn' to every 
damn driver in the kernel).

	Jeff


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: GFP_ATOMIC page allocation failures., Jeff Garzik, (Wed Apr 2, 1:21 pm)
Re: GFP_ATOMIC page allocation failures., Andrew Morton, (Wed Apr 2, 1:33 pm)
Re: GFP_ATOMIC page allocation failures., Jeff Garzik, (Wed Apr 2, 2:18 pm)
Re: GFP_ATOMIC page allocation failures., Nick Piggin, (Thu Apr 3, 1:57 am)
Re: GFP_ATOMIC page allocation failures., Jeff Garzik, (Thu Apr 3, 2:20 pm)
Re: GFP_ATOMIC page allocation failures., Kok, Auke, (Wed Apr 2, 2:37 pm)
speck-geostationary