Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1269657imm; Fri, 27 Jul 2018 14:14:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdNO8TduzeD2yXvhKkcbUXhntNZb5cAwBDmkP0deYxCHfv6z9iAMFoxMsHy6qFfhHmkfMoN X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr8162066pfk.173.1532726088785; Fri, 27 Jul 2018 14:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532726088; cv=none; d=google.com; s=arc-20160816; b=xlG6oghCi0QJ8OPKp+CuuEpY4yPX806w4oQRAK4aHUdoADLfItokYKyHVgEkGv+clj nfH9i1qoAk8f9XjDRAr9K+X6ouZ2Q8afCzE+oWwqtL2GEwLVC4YFEtRfea/ouoNW8vSu 0Vp8BO0MfGny+JJcKsoFpwvhNrtrlgqbBSS4rv+ZhRhecua2w9dC7uHCRK+brZCLJvqZ hOyNh5pX7esAjkLUH3ZR2aLMIE2k/zmm21MnS3Of/1+IJmuU8e8Zbs7VHZzpZ8ywTQKs Ovd3a+Hlf7+1kWAVqtQYB8ptdJuLDahnB8W7q8j9Ql+fpAiRw6Oyk4KyHCRINnsWA3fl 0j1g== 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=6e8ueguMnkzTeceu1k5nasa/7QLIfUwiGxszK8SsurM=; b=B5HJ87VtmL4acIVZNBhm4Wpry022UUasvea/wYORIj6rOvrwGi++YmEV1Vz+i6s7pz zoeHEue+LmwEYZ5RlO6qFL2nPXdre5d91FyNRQBrT28aUmQHijqg18wt01BzZD9Tz7M4 uA9G3lV0NSVeW8ddskHVkfg76WekeHgVqXGDIhHR7Y92z9YyxfKvN3OVsW9Dj1QxfHEO OCz8h7xp/doY+X4KAOfapvwpPQD8xZ0aqHYQsG7iU8juSb18x5H8YjdBbWg0X6nHR8ns iQ8M5tYbK7EJJGULtXvDr2XoEjFJc4V0Py765GkumuocLqlUjiaw5CH3aqB6FKSdeXq7 62Jg== 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 y23-v6si4615960pgl.132.2018.07.27.14.14.34; Fri, 27 Jul 2018 14:14:48 -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 S2389889AbeG0WhB (ORCPT + 99 others); Fri, 27 Jul 2018 18:37:01 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39228 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389459AbeG0WhB (ORCPT ); Fri, 27 Jul 2018 18:37:01 -0400 Received: from localhost (unknown [172.56.44.110]) (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 E741D102B38BC; Fri, 27 Jul 2018 14:13:16 -0700 (PDT) Date: Fri, 27 Jul 2018 14:13:13 -0700 (PDT) Message-Id: <20180727.141313.1728041732656571923.davem@davemloft.net> To: baijiaju1990@gmail.com Cc: jon.maloy@ericsson.com, ying.xue@windriver.com, netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: tipc: bcast: Replace GFP_ATOMIC with GFP_KERNEL in tipc_bcast_init() From: David Miller In-Reply-To: <20180727093135.7469-1-baijiaju1990@gmail.com> References: <20180727093135.7469-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]); Fri, 27 Jul 2018 14:13:20 -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: Fri, 27 Jul 2018 17:31:35 +0800 > tipc_bcast_init() is never called in atomic context. > It calls 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.