Re: [PATCH 1/1] staging: rtl8723au: Remove unnecessary OOM message

From: Joe Perches
Date: Fri Mar 06 2015 - 15:22:05 EST


On Fri, 2015-03-06 at 14:43 -0500, Jes Sorensen wrote:
> Joe Perches <joe@xxxxxxxxxxx> writes:
> > On Fri, 2015-03-06 at 11:08 -0500, Jes Sorensen wrote:
> >> Julia Lawall <julia.lawall@xxxxxxx> writes:
> >> > On Fri, 6 Mar 2015, Jes Sorensen wrote:
> >> >> Quentin Lambert <lambert.quentin@xxxxxxxxx> writes:
> >> >> > This patch reduces the kernel size by removing error messages
> >> >> > that duplicate
> >> >> > the normal OOM message.
> >> >> > A simplified version of the semantic patch that finds this problem is as
> >> >> > follows: (http://coccinelle.lip6.fr)
> >> >> This patch removes useful warnings about what allocation failed. The
> >> >> messages removed are NOT duplicate!
> >> > Is it really the case that the information can't be reconstructed from the
> >> > information generated by kmalloc on failure? To my understanding there is
> >> > a stack trace, and from scanning through the changes I see only one change
> >> > per function, so perhaps the stack trace already makes it clear where the
> >> > problem occurred?
> >> It may be possible to backtrack, but this change just makes it harder.
> >> There are tons of real issues to fix in this driver, this patch just
> >> increases the risk of patch conflicts for no real gain.
> >
> > Making the allocation less likely to fail for
> > low memory systems is a gain.
> >
> > The allocation failures themselves are low
> > likelihood events. Determining which specific
> > memory allocation failure occurred has near
> > nil value.
>
> Joe,

Jes,

> That is bologna,

We disagree, and I rather like minced meat sausages.

> knowing which allocation failed has a lot of value, it
> allows the developer to go back and look at the allocation sizes,
> parameters applied etc.

Likely enough of this is emitted by the generic OOM
message and stack dump.

> This is a classic case of blindly applied script 'fixes' causing more
> harm than good.

cheesy tomato/tomahto. Goes well with baloney.

cheers, Joe

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