From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amir Vadai Subject: Re: [PATCH net-next 01/11] net/mlx4_en: Suppress page allocation failure warnings Date: Fri, 21 Jun 2013 08:35:07 +0300 Message-ID: <51C3E60B.60605@gmail.com> References: <1371757222-21412-1-git-send-email-amirv@mellanox.com> <1371757222-21412-2-git-send-email-amirv@mellanox.com> <1371763689.3252.419.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Amir Vadai , "David S. Miller" , netdev@vger.kernel.org, Or Gerlitz , Yevgeny Petrilin , Jack Morgenstein To: Eric Dumazet Return-path: Received: from mail-we0-f175.google.com ([74.125.82.175]:53326 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422757Ab3FUFfN (ORCPT ); Fri, 21 Jun 2013 01:35:13 -0400 Received: by mail-we0-f175.google.com with SMTP id t59so6176866wes.34 for ; Thu, 20 Jun 2013 22:35:12 -0700 (PDT) In-Reply-To: <1371763689.3252.419.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On 21/06/2013 00:28, Eric Dumazet wrote: > On Thu, 2013-06-20 at 22:40 +0300, Amir Vadai wrote: >> From: Yevgeny Petrilin >> >> When system is low on resources, those warnings hang the host. >> >> Signed-off-by: Yevgeny Petrilin >> Signed-off-by: Jack Morgenstein >> Signed-off-by: Amir Vadai >> --- >> drivers/net/ethernet/mellanox/mlx4/en_rx.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c >> index 9c57581..2b564ac 100644 >> --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c >> +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c >> @@ -57,8 +57,8 @@ static int mlx4_en_alloc_frags(struct mlx4_en_priv *priv, >> for (i = 0; i < priv->num_frags; i++) { >> frag_info = &priv->frag_info[i]; >> if (ring_alloc[i].offset == frag_info->last_offset) { >> - page = alloc_pages(GFP_ATOMIC | __GFP_COMP, >> - MLX4_EN_ALLOC_ORDER); >> + page = alloc_pages(GFP_ATOMIC | __GFP_COMP | >> + __GFP_NOWARN, MLX4_EN_ALLOC_ORDER); >> if (!page) >> goto out; >> dma = dma_map_page(priv->ddev, page, 0, > > > Thats IMHO a lazy patch... > > What about mlx4_en_init_allocator() ? > > I think I did a patch doing fallback to order-1 and order-0 allocations > I will go over the patch, and fix it for v1.