Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1885984imm; Sat, 4 Aug 2018 13:09:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfRt6RtNyvjputT7f8yNkhZ+CJkO2T9rzrpkezIsgO5Qyli06iXuJ4KtWeDrb7LrRV1VAQq X-Received: by 2002:a17:902:15c5:: with SMTP id a5-v6mr8241741plh.137.1533413378299; Sat, 04 Aug 2018 13:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533413378; cv=none; d=google.com; s=arc-20160816; b=JXZ9SRtvC2ervoEu9dW+zX9giQ4NJGrkY+skMjJtswSmo85nghe9tf5ATmeO5kPDmL BUkA/NFBuZvV/+Dei1SxFHTMhCQeK+hqHWjkrmAKBOmz+l6Ex9tZ48ZcA4J8FMyq4NnP gkUayuMfNiO3AvsAGqFGphgGpLNHyKce5x8vXjRHqK7+kf1TxapZbnSJ5KLkqWTV5osj NqSKJvWDDIN1Z1CHyMKKFJgqiznmuYApmerIl4oGA7Phl78sa0vCIDR3U8gFh7FU2UId 6ybzLQOi1t08oDrXEH41KyDRSgnhl/fDXojf7lsxPua2N3bLe79zjis/jHr2QnNGg9GC auPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=csGZ27xpWX9ItgaBzl2EQTsscWNVt4IubaNpFrk/luY=; b=fIbkbIPErN39pfcPBZ0mJyMF2yF25DcVf3VYYS428j1QQtL9KlPEdYtBxddQN2tURT STbe7vfrK0QriV9D/uICUNUmrOYhUiOtdymm5gu2hYNcVfENxPGexlayQeYwSUgs2JGK rrtMBUq7P/GhhDC57Bw61jXKKUfOWPzDtzJhIB/YvnxVtK1yEknui1IQO9/zgofLQ+x+ l1mXlKwRLYRMPwD4yOvBT79iUQXj/u7BXvyhdUheDON5WmBD9yvJArjUur1r/bH62vg7 RHPRzRMyv33ZePb5qy+XfwGBLmIyiZBwa2nKuXItsM4N13abL9U4lkexQ7JkR1WgDuiP XZYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si8068599pgb.598.2018.08.04.13.09.23; Sat, 04 Aug 2018 13:09:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729673AbeHDWKW (ORCPT + 99 others); Sat, 4 Aug 2018 18:10:22 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:56790 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728309AbeHDWKW (ORCPT ); Sat, 4 Aug 2018 18:10:22 -0400 Received: from localhost (unknown [172.58.40.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 705A31403A95B; Sat, 4 Aug 2018 13:08:34 -0700 (PDT) Date: Sat, 04 Aug 2018 13:08:33 -0700 (PDT) Message-Id: <20180804.130833.571423391959893455.davem@davemloft.net> To: baijiaju1990@gmail.com Cc: benve@cisco.com, _govind@gmx.com, pkaustub@cisco.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: cisco: enic: Replace GFP_ATOMIC with GFP_KERNEL From: David Miller In-Reply-To: <20180804004009.18928-1-baijiaju1990@gmail.com> References: <20180804004009.18928-1-baijiaju1990@gmail.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 04 Aug 2018 13:08:34 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jia-Ju Bai Date: Sat, 4 Aug 2018 08:40:09 +0800 > vnic_dev_register(), vnic_rq_alloc_bufs() and vnic_wq_alloc_bufs() > are never called in atomic context. > They call kzalloc() with GFP_ATOMIC, which is not necessary. > GFP_ATOMIC can be replaced with GFP_KERNEL. > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Applied to net-next, thanks.