Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1549689imm; Tue, 10 Jul 2018 03:58:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpffwiP8l7tSCDfFlQqXaZ7EbqVCqT+ZYr4cJZrCA7MVrB35djxsAWRPc/FmJ/62d3q7UvJk X-Received: by 2002:a63:c312:: with SMTP id c18-v6mr16050155pgd.449.1531220329972; Tue, 10 Jul 2018 03:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531220329; cv=none; d=google.com; s=arc-20160816; b=CiDfQ7L3C/rNlN/Z0sIp5wxPsv1KH1cX2nu/ilIhRqCSrC+WEwauhk/KaKGWTWcQpQ iuWMa685bJ37mxLSOiQsQrU25Kn7WpyRmHJKQudhisqc2nF+LrS8oRIRnMowbFjluira teQxesPp11TDOvfef3+UxhVxy8Lqy1Xp2nqSFGHDAcacIVAVlI1lLlHIlxZRKuiWQdHE oAX798C70D6LGZDmYuRtUdgThdrEIV7yn3O/HsoCu9hY1f7VE7rW+E60KEH+QHX3JONk /Fr/zT7bC/3CNQYj6rw9EfBGxT3MAJxUCnaHSgmx4LeTquZESdlGaApY7YgHk676NJ+D VLaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=AR+9wDHfcgtzNql2m4DQw+DcptpWHNDXyWDJVxWusVA=; b=xECrSv9aLnVWv3/GsOILRiC+UQ4iqzX/4/AYyUgCxmJx/xm0e4Bbk5rql5LCYkDA4e LZ4gJhotb7efLog/O/ivYTCpv+u079JYyq+38aFWjNWhQMCTNr8+1Y5e2Xe9D75uI8um oBnZ2oWuKHmqNuqKgj3MlQgAHnKa9qSLkBKQuyeTD0trLHrU/5PiVo7i3ckGfs0FqKju vpai/pbnOiQRvQyXegnfZCbtmQgoxu4T47l11I6N1vtvFQjJ0Bo5UAj0FnT623ZNTnyL CR9FEFIpwZtAgTuSGaz+dDXVPTu2a4WeYeSazRs8MVXSMc3Y6y3WDYh7dbHxMTUVValF hfrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TKDvSdoF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i38-v6si15796229pgm.394.2018.07.10.03.58.35; Tue, 10 Jul 2018 03:58:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TKDvSdoF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933302AbeGJK4r (ORCPT + 99 others); Tue, 10 Jul 2018 06:56:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:55618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932172AbeGJK4p (ORCPT ); Tue, 10 Jul 2018 06:56:45 -0400 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 80F3420883; Tue, 10 Jul 2018 10:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531220205; bh=TiUQiqq6FfdjSgnrXYp4PJ7JbO6ubukINmXbq7ITako=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TKDvSdoFgfBmGW+zYBj+wbrVF5g7omftL50o/psBO2D3pxFj7zTZjJhK/D1kSTWUz zrPANV2t+X1mhcUjeuf3Us1yDtGY16ZOikDlrLxgP6E04icP56CmM2FIDtTy+kkFQZ AJNMNjUaMvU561MEt05W37P0etLOhtxbVk5OAsqM= Date: Tue, 10 Jul 2018 13:56:42 +0300 From: Leon Romanovsky To: Jan Dakinevich Cc: Yishai Hadas , Doug Ledford , Jason Gunthorpe , Tariq Toukan , "David S. Miller" , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Denis Lunev , Konstantin Khorenko Subject: Re: [PATCH] ib/mlx4: adjust gfp flags for DMA allocations Message-ID: <20180710105642.GD3014@mtr-leonro.mtl.com> References: <1531144273-25959-1-git-send-email-jan.dakinevich@virtuozzo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UXdImcDs+Jp8Skh3" Content-Disposition: inline In-Reply-To: <1531144273-25959-1-git-send-email-jan.dakinevich@virtuozzo.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --UXdImcDs+Jp8Skh3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 09, 2018 at 04:51:13PM +0300, Jan Dakinevich wrote: > For most cases it is enough to use common GFP_KERNEL flag. However, > there is one place with defined fallback path on unsuccessful allocation. > In this case it would be preferred to append on first allocation attempt > __GFP_NOWARN and __GFP_NORETRY flags to suppress possible warnings and > to shorten the path to the fallback in a case of memory pressure. > > Signed-off-by: Jan Dakinevich > --- > drivers/infiniband/hw/mlx4/cq.c | 2 +- > drivers/infiniband/hw/mlx4/qp.c | 6 ++++-- > drivers/infiniband/hw/mlx4/srq.c | 2 +- > drivers/net/ethernet/mellanox/mlx4/alloc.c | 12 ++++++------ > include/linux/mlx4/device.h | 2 +- > 5 files changed, 13 insertions(+), 11 deletions(-) > Thanks for the patch, however we are working on the patch to avoid second call to mlx4_buf_alloc() and it will eliminate the annoying WARN splat. Because it is in latest stages of internal review, NAK. Thanks --UXdImcDs+Jp8Skh3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJbRJDqAAoJEORje4g2clinKCwP/isUFdWDQl5E6247HvyTeC3a /vG4hTqCcNZ+a2e0FWCtIgPdZ9wfj5b/NBf9a/MMva2X/drKHjaXs6sszBwbLvOu c1Fev75rSnzoiKgcBQZHnG7IiRlqZGgk396o3qz4HyBklKf4EaZuLPWV4z8J6IBG K+rxZCd8bHvzOJBtzMvi9GeOHh/e1XNmlNQsvTpRf+yK/Fg2KdYWqP0BLgryWLuP XQwKx5TuhiuLx2bkV/DaqHZ+wgltxmc1dwYpPwgFkZdUhd2TrByfkMeJp40JPbHo lLU57U0QBUEV/8WZaWgua4lmw6U5k5jJ10ZsylW/yH+6BYyuxDObdByssqLU5gDp eWULOq41M96rJXbc+idxhABKHMl7kWcvZtQ6WC/w5QVbIMz8dlqJ1QauaynvojN2 G0ToKMg9Q/+KYcuZf4W1R0lZ7uA4DiGiP08bCh6VSedeE1dyuwoySVs3FnWJEroQ tFY2+A72waUm8JpkbpnQkHHkB90XMR0r25srz2qKm19HSlND8u2oSO401JAk0Hau cjbG0IAQlko7akGX+ubn+R6MNOJ0UiJ4bsVV9gr+G9Za9mWjG4lE9SzXnBAaQLSS yxRrTLmPA7Zf68Ig+S8mcsSP1i5wYYkHx8omYA8eS/F6MyPs8fP0y484tyKTgtcQ dr/wJZO7y9sa+8/abuLM =A3Y2 -----END PGP SIGNATURE----- --UXdImcDs+Jp8Skh3--