From patchwork Fri Oct 21 14:51:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 9389449 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5AFDB60762 for ; Fri, 21 Oct 2016 14:51:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C8A72A261 for ; Fri, 21 Oct 2016 14:51:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 412B52A266; Fri, 21 Oct 2016 14:51:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B847A2A265 for ; Fri, 21 Oct 2016 14:51:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934098AbcJUOva (ORCPT ); Fri, 21 Oct 2016 10:51:30 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:52416 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933854AbcJUOva (ORCPT ); Fri, 21 Oct 2016 10:51:30 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1bxb9F-0004vk-Rj; Fri, 21 Oct 2016 16:50:18 +0200 From: Sebastian Andrzej Siewior To: Jens Axboe Cc: linux-block@vger.kernel.org, Sebastian Andrzej Siewior Subject: [PATCH] blk-mq: use GFP_KERNEL for allocations in blk_mq_map_queues() Date: Fri, 21 Oct 2016 16:51:25 +0200 Message-Id: <20161021145125.31284-1-bigeasy@linutronix.de> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is one caller of blk_mq_map_queues() which already doing a GFP_KERNEL allocation for ->mq_map so I don't see the need for GFP_ATOMIC later in blk_mq_map_queues(). Signed-off-by: Sebastian Andrzej Siewior --- block/blk-mq-cpumap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-cpumap.c index 19b1d9c5f07e..7fc37f28b433 100644 --- a/block/blk-mq-cpumap.c +++ b/block/blk-mq-cpumap.c @@ -39,7 +39,7 @@ int blk_mq_map_queues(struct blk_mq_tag_set *set) unsigned int i, nr_cpus, nr_uniq_cpus, queue, first_sibling; cpumask_var_t cpus; - if (!alloc_cpumask_var(&cpus, GFP_ATOMIC)) + if (!alloc_cpumask_var(&cpus, GFP_KERNEL)) return -ENOMEM; cpumask_clear(cpus);