Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbeACOWL (ORCPT + 1 other); Wed, 3 Jan 2018 09:22:11 -0500 Received: from mout.web.de ([212.227.17.12]:60993 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbeACOWJ (ORCPT ); Wed, 3 Jan 2018 09:22:09 -0500 Subject: Re: ethernet: mlx4: Delete an error message for a failed memory allocation in five functions To: Tariq Toukan , linux-rdma@vger.kernel.org, netdev@vger.kernel.org Cc: Julia Lawall , LKML , kernel-janitors@vger.kernel.org References: <30191db0-4d99-0349-b66a-c7354ef90d50@users.sourceforge.net> <0fea8f2f-f8fc-ce2e-3d33-44227de3637a@mellanox.com> From: SF Markus Elfring Message-ID: Date: Wed, 3 Jan 2018 15:22:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:NxIwXNgguD22QjQO2JnCSQblYlBNmr/7PChVnWZusPuFOMmnAt1 0JwyOQao9sBkTpQ0vkjwEMWqOnqsFnS1wLdfCoZX+6ecELPDsx2bnou68gcpI/gA496VlEq V/8ZYX60sWn8FQXS9YdR7SpRmH43HR5TAVHZNg0vwSUXKinIO1shJ79gt2oHaHmsN+tD3S2 rzTKew9Y1aJfsA7eAP0IQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:wRe3i8iOS2M=:RPsEilnVOsT804ogs2xWr5 k5qnEE/Wmc9x+Nn3aqP3bd+byF0o3RtLhj6thuVk+AYKv4fsuM/SPNH42dKXNZWtNXFll79w0 TCTkuYIQr7WqcgRDAFAoirudB1gosNSshrNrAF+7w3+5UjY65O8smqC/IDyKeYm8L/hTvhUzF h4YQo7TAk5rzDad2YbSl6kuGFJXQ3HIn7Fst7i5sTZDWb1yTPw+c2wSvenuKJFWgV5UmL/A8J 5ijTwqDipYitvyUXWKjrvUvPPQy1O9vSyDzP0KoOI0PjxGSp/ODEfiFVSh7MgHcO/cIlIX39o gWXN7Cn0wsOXahnWwoUKj2AJ/rRgkJOi39HYOjvObmCFXz7JV9cqJ9eSw2mPNu7BnBGoFobTq FDq+590zYF6tTm27kTnp3Ukk7ZgMCTsEeIybWQYXCdmbO9hQH10JtZ77wYWsrP8u0oqRRH0gB A5iqUD8jdXLxjd3E143IBZ/7hvCP1w46AwBOs/ZZhUOv78VE/NfbG9/yTEShr+Rc3Qi3JCEdj BgPmBttOnw1FTYWUI/iCGri7pLOx6kviLEm+6KGfFWd30NE/D8Ei5biasKbuIW8Y8OAaKp/79 XziCL4SqZdFDwUKsspTjG9F06/9VUACyt/PvqQuKpqsh/ZVogj1FiBrDs+RybPcN3sliMvz2j TmSKuyJX+LzInANTsCrM/2kxLB2+H2hkvrRu6icHPuXUpAzL9YXuZEiXKbk9JhpMF1ryYj6T/ RDpK5wp48Aiwhd/7zy8UD5LmWdxDMgl//wT4/ONrD86qrlls0zNMnVeVML+Mht+2xQuF0t13k uKp3jEWr5eWFXc0obfni/QyqL5UKIdbN1i5hvthCAn3x0Ro9TU= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > I don't really accept this claim... > Short informative strings worth the tiny space they consume. There can be different opinions for their usefulness. > In addition, some out-of-memory errors are recoverable, even though their backtrace is also printed. How do you think about to suppress the backtrace generation for them? > For example, in function mlx4_en_create_cq (appears in patch) we have a first allocation attempt (kzalloc_node) Would it be helpful to pass the option “__GFP_NOWARN” there? > and a fallback (kzalloc). I'd prefer to state a clear error message only when both have failed, > because otherwise the user might be confused whether the backtrace should indicate a malfunctioning interface, or not. Can the distinction become easier by any other means? Regards, Markus