Received: by 10.213.65.68 with SMTP id h4csp2703970imn; Mon, 9 Apr 2018 07:46:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/QrHk0EH9guW76EotOYFkOY8Jt2KisssKS7yC7FL8kAtehw24W1OP5sf/2KqzT+XDu22hD X-Received: by 10.99.144.199 with SMTP id a190mr25125078pge.359.1523285204701; Mon, 09 Apr 2018 07:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523285204; cv=none; d=google.com; s=arc-20160816; b=EbI1Dqpp6TywYXHqgE4YlsTemOXC38SnM6y+ExflRyST+0mYfGrYQMz7RrkNPX1mOP iUwdElESi7NcvXkxm+TKAV8NPo/BSmTnLpy9LrzIQNMHfb/xBUKU/aOaRWUxUxFKlsle PzYnGPMc4halg/E4W+htqvMELL0chYxg2A+ayTd9I3G+pjWR309m7hd+nWcGNYB6A4MA QRsZCDNn2C2SS47v/4xlvRJh9ZvJdrkfY+2kVcmLR01UllcgBLxsWPdKSHibdI8wFs7g xfLtUbosf7RJk0FWqN8kXuSEgJfP3Bavdk7pHcyQIceevrO6EqPAjCmHVbqRksANmj6/ OrBw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QokxSEubD5Wc1ePPor6z+HiRzQwylFQzHQ+uOAAWmfM=; b=f6cE1FzX2LZnBgzb0cEuxEu2uxCU4OrSjCdxOgSEDImojQCrSqcKk5q2ZidvoHwfX8 7koNYm3s4Ar0SZSjbziAl69OE5+e7f6BfoeOHAi51kkUqbZf31pKza5lQojqbt3GLQ3V JDqnoXQkQ/GSRAgdtXcgX2qn8ae4oQto5jSQ0yxhvm8cz9iCiRXTFdPjCGtDBeJFZaZv XelrTKTJvECt5guf7ffjiqhcGqMggzqBSvrIBltGkAmujRZasdJxtYu8KuuOpruwL6zi WjC+I7/doIXgb6LuKzJcLzLbMSaAO6UNQzEbRU8QC4mN3n5KeU5WeU8/vghK6S0cQyWr p8Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TadcuxCp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 134si325136pgd.709.2018.04.09.07.46.07; Mon, 09 Apr 2018 07:46:44 -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=@gmail.com header.s=20161025 header.b=TadcuxCp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752820AbeDIOmm (ORCPT + 99 others); Mon, 9 Apr 2018 10:42:42 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:39114 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751794AbeDIOmZ (ORCPT ); Mon, 9 Apr 2018 10:42:25 -0400 Received: by mail-qk0-f195.google.com with SMTP id j73so9511975qke.6; Mon, 09 Apr 2018 07:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QokxSEubD5Wc1ePPor6z+HiRzQwylFQzHQ+uOAAWmfM=; b=TadcuxCpDuXfPFOG0yE71uNnRHC1H+837LlT8qR7MAHyzFGGgUawLPH0T0u44XV8w/ OO/T7IHsXEG0wPkZdItXyQ2tiFlYviOhLUVeHVRRAGUpxrVIXokZjqpU177Nf0zmlJRU Dnnx1RYkZ1eGndNjgJxwFYqhZ7dyY05d8rJ9sEX8G2InUXH0IOT1sn0KXAXPvzIAPpYe K7N2XEve3cIysAjybcoSntXFNwK6d0XIz8rLQP/trJNBCxc76+FX4lQTTJYzN/w6tSyx 3klsi/qEF7bxWu+73FgEioqCcKaBREGhtrTEtnwnyXLmy7zvo1OLsisLenI1xPxefdd0 jEpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QokxSEubD5Wc1ePPor6z+HiRzQwylFQzHQ+uOAAWmfM=; b=bUK+p0VD12QgUXq/rgb0nPup1VHY+48Pa0HQfqzoPkSuVl1nqEDRZoO7RyiCe4k8IZ eUcI8sAWHve4fzAM8A7pDWxgQ2ZKT9hbl8jbNnNZUkoOjQRc9useCSXisigei7I7Sezv UmBcavx8zesTqzKjA+KVEiZdNyFye3GogzMB/Ig6NTrNR7pPRDJQJpKK3fANLh5cLxAK 5o98CINE0zP2HTrdBEcl9516pBozuWrE8Uj/UPAEoO3VXkRiym/05w0N9UEElidp981h hzQmMLJZKVYw+9g442qXA8w1LOfhinRwh8vABQV/1a4F8QPu23BDKO6ds4jZ8rc1BcKk xw0Q== X-Gm-Message-State: ALQs6tAS3IbgDmPPYWWask8yzLgH2THTwHSYpGACgCO6bxuf7F3gD0jd M19NGLo6QjLhMDplo19MyVcU9WZS X-Received: by 10.55.176.193 with SMTP id z184mr47567422qke.120.1523284944131; Mon, 09 Apr 2018 07:42:24 -0700 (PDT) Received: from [192.168.86.235] (c-67-180-167-114.hsd1.ca.comcast.net. [67.180.167.114]) by smtp.gmail.com with ESMTPSA id k50sm396380qtb.96.2018.04.09.07.42.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 07:42:22 -0700 (PDT) Subject: Re: [PATCH] net: dccp: Replace GFP_ATOMIC with GFP_KERNEL in dccp_init To: Jia-Ju Bai , gerrit@erg.abdn.ac.uk, davem@davemloft.net Cc: dccp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1523283004-25581-1-git-send-email-baijiaju1990@gmail.com> From: Eric Dumazet Message-ID: <8216dee8-5e52-421e-026a-4c75d654be54@gmail.com> Date: Mon, 9 Apr 2018 07:42:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1523283004-25581-1-git-send-email-baijiaju1990@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2018 07:10 AM, Jia-Ju Bai wrote: > dccp_init() is never called in atomic context. > This function is only set as a parameter of module_init(). > > Despite never getting called from atomic context, > dccp_init() calls __get_free_pages() with GFP_ATOMIC, > which waits busily for allocation. What do you mean by "waits busily" ? GFP_ATOMIC does not sleep, does not wait. > GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL, > to avoid busy waiting and improve the possibility of sucessful allocation. > > This is found by a static analysis tool named DCNS written by myself. > And I also manually check it. > > Signed-off-by: Jia-Ju Bai > ---