From patchwork Tue Apr 23 12:29:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 10912857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D22D1390 for ; Tue, 23 Apr 2019 12:30:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DFBF28462 for ; Tue, 23 Apr 2019 12:30:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F914286B5; Tue, 23 Apr 2019 12:30:00 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 08FB828462 for ; Tue, 23 Apr 2019 12:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727676AbfDWM37 (ORCPT ); Tue, 23 Apr 2019 08:29:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:37874 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbfDWM37 (ORCPT ); Tue, 23 Apr 2019 08:29:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C5A25ADD2; Tue, 23 Apr 2019 12:29:57 +0000 (UTC) From: Hannes Reinecke To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, Hannes Reinecke , Hannes Reinecke Subject: [PATCH 3/5] blk-mq: remove 'nr_queue' argument in blk_mq_exit_hw_queues() Date: Tue, 23 Apr 2019 14:29:49 +0200 Message-Id: <20190423122951.134531-4-hare@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190423122951.134531-1-hare@suse.de> References: <20190423122951.134531-1-hare@suse.de> 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 Unused. Signed-off-by: Hannes Reinecke --- block/blk-mq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index d16672bfa97d..3da453b11deb 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2267,14 +2267,12 @@ static void blk_mq_exit_hctx(struct request_queue *q, } static void blk_mq_exit_hw_queues(struct request_queue *q, - struct blk_mq_tag_set *set, int nr_queue) + struct blk_mq_tag_set *set) { struct blk_mq_hw_ctx *hctx; unsigned int i; queue_for_each_hw_ctx(q, hctx, i) { - if (i == nr_queue) - break; blk_mq_debugfs_unregister_hctx(hctx); blk_mq_exit_hctx(q, set, hctx, i); } @@ -2930,7 +2928,7 @@ void blk_mq_exit_queue(struct request_queue *q) struct blk_mq_tag_set *set = q->tag_set; blk_mq_del_queue_tag_set(q); - blk_mq_exit_hw_queues(q, set, set->nr_hw_queues); + blk_mq_exit_hw_queues(q, set); } static int __blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)