Received: by 10.223.185.116 with SMTP id b49csp2201542wrg; Sun, 4 Mar 2018 21:23:11 -0800 (PST) X-Google-Smtp-Source: AG47ELtiCCBYZ/aZ8DeE5PW7VrdewRfGOZFym7dqUU4ZLIFA9kFUS1r6nWOIgSryEPzWYPL6HI4N X-Received: by 10.101.93.134 with SMTP id f6mr11392336pgt.293.1520227391349; Sun, 04 Mar 2018 21:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520227391; cv=none; d=google.com; s=arc-20160816; b=YIPB2oTfh78vnQVjvXqT6Q24tgI92cPUL6AivdD7ysqBA1e67Sbr4CcdDBQ57Z8aUn 7fQ0SrI04G2RXQ6AeHQKIy/7ezacJONeGEwFWPqwHAXbJOdo1Ka/4gmsQ3O+Py6gBCkf bSIFuhUktEn8Bu6OVoGkfGIVtahdWJ2cc1/WTY5+BxHhSoBA1Yb4DyItfsqiab6CEJ/v FVqqWgqhcYQwE5EdhruOG77bTiX0O0lEXlrhLC86mN1lNFZnPapTuxjVZL5B+HbKe4bt kjVrFexi6FazHS67GGHPIZuxbgClKdysy+dPfno+MZKwIiUyvT1aZof7AMVHKSSDs8Fm 1NQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=JQ/3kht8kIryrttkw0UX4qH+oFlJ0XDAzctfg0EK8c8=; b=KSjmpXZ7BLy8uC2iuW7S1OT4Lk8xKG7Uqg2rl65MZzJ+g28BNauGM46hH8NF7j6PR7 dny2ejfFLVf64rGG5dlhckmKyJTRAupTyeDhxK2BuH2xNVhfM9f6RkNQAQXOf+sPwF1H hVs3Gz5YLVGKXrGJXa9QiQfLX2bVq8I3a7vturu7RWtSzUQNrSbUH6Rb9Sc2Kqz+SThb Q2EbxSyTnWViSUOOrtOvPwCnWs0s9TbhgCGOsjzoYin+ZjcQx8SdjiSbw825TyETeUGU q+v5s0OQXJozpzN8sxCB+p0zz5XvYEePetXmpYC78nC+GOnc440+ozRsADAPevyuRJny uK8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u135si7894003pgc.384.2018.03.04.21.22.56; Sun, 04 Mar 2018 21:23:11 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbeCEFSe (ORCPT + 99 others); Mon, 5 Mar 2018 00:18:34 -0500 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:41714 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751215AbeCEFSd (ORCPT ); Mon, 5 Mar 2018 00:18:33 -0500 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id siVAew76qTLhIsiVAewZan; Sun, 04 Mar 2018 22:17:32 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.89_1) (envelope-from ) id 1esiVA-0004zy-JM; Sun, 04 Mar 2018 22:17:32 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: Jia-Ju Bai , "K . Y . Srinivasan" Subject: [PATCH V2 02/12] hyper-v: use GFP_KERNEL for hv_context.hv_numa_map Date: Sun, 4 Mar 2018 22:17:12 -0700 Message-Id: <20180305051722.19157-2-kys@exchange.microsoft.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180305051722.19157-1-kys@exchange.microsoft.com> References: <20180305051539.19079-1-kys@exchange.microsoft.com> <20180305051722.19157-1-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfDch5AamIWLDIzqOgePNspxa5B1ze5PJbibwdrjSc3LyMWF2ZybMGi3dCzZ7J9zAtyWmyyIv1rKPJeoCszvBXIOdDLmw2oDbzJk/pVfza0ouxX4xKr/X X3knNurBSkIIxrmCdv3vUaGKcyJRdmxV0CoHNTxov+rAIi8S4a5NsDlp+adK1dUvCK5R4cB7H9FnGHPPgA0e9wGwdwY/4XxrCcqMf6oKOO7SKrQoBfivCC0K rBDWgt5Wvz1nuJ6O7GCrYsyuj9kQVebkCiB5lGYel/vvh3tJto6qJc5nLY/7Ymqf+lakPhrC+p74znwa8uRJywQkj88+v4tp4Bmc8l98dqADmZ+dFJ5jQJuq MEbb6Qxh7qC1uwkNnL37RhRHeAFuwFz3Mhvt1Gg1TNdaNyE9/kiTDv8nNe3iP6aWIcsL6Iqvb8bkfQX+QnQ54Wb8sk9fwnubFT6jrGNBoi1hf5Y8gZNx5MxX H7t8/gExlXC/VzwXFqg9uAY1jduLDde6B1sjmECskw+eMkWp0NXM8cFYsfGaIwh739NiEp8kxSzxPNqSF6a3qgav64Ooi8jQQWcuyfvnVXdSIinMqBeXyhEU 9qX5VVVys4rA88TjVCwwwQIe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jia-Ju Bai The kzalloc function is called with GFP_ATOMIC. But according to driver call graph, it is not in atomic context, namely no spinlock is held nor in an interrupt handler. This GFP_ATOMIC is unnecessary, and replace with GFP_KERNEL. Signed-off-by: Jia-Ju Bai Reviewed-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index fe96aab9e794..b6cacc4cccf2 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -147,7 +147,7 @@ int hv_synic_alloc(void) int cpu; hv_context.hv_numa_map = kzalloc(sizeof(struct cpumask) * nr_node_ids, - GFP_ATOMIC); + GFP_KERNEL); if (hv_context.hv_numa_map == NULL) { pr_err("Unable to allocate NUMA map\n"); goto err; -- 2.15.1