From patchwork Thu Feb 9 20:11:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13134453 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97943C64EC7 for ; Thu, 9 Feb 2023 12:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjBIMLY (ORCPT ); Thu, 9 Feb 2023 07:11:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjBIMLM (ORCPT ); Thu, 9 Feb 2023 07:11:12 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 046122685; Thu, 9 Feb 2023 04:09:20 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4PCFyz1VWTz4f3jZH; Thu, 9 Feb 2023 20:09:15 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgAHvrFr4uRj4rAuDQ--.53349S2; Thu, 09 Feb 2023 20:09:17 +0800 (CST) From: Kemeng Shi To: axboe@kernel.dk, hch@lst.de, jack@suse.cz Cc: andriy.shevchenko@linux.intel.com, qiulaibin@huawei.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] A few bugfix and cleanup patches to blk-mq Date: Fri, 10 Feb 2023 04:11:09 +0800 Message-Id: <20230209201116.579809-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-T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U0VnQUUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi, this patchset contains a few bugfix patches to avoid recalculation race, mark active before allocating tag in blk_mq_get_tag and some a few random cleanup patches. Kemeng Shi (7): blk-mq: sync wake_batch update and users number change blk-mq: count changed hctx as active in blk_mq_get_tag blk-mq: remove wake_batch recalculation for reserved tags blk-mq: remove unnecessary bit clear in __blk_mq_alloc_requests_batch blk-mq: remove unnecessary "set->queue_depth == 0" check in blk_mq_alloc_set_map_and_rqs blk-mq: Remove unnecessary hctx check in function blk_mq_alloc_and_init_hctx blk-mq: remove stale comment of function called for iterated request block/blk-mq-tag.c | 49 +++++++++++++++++++++++++--------------------- block/blk-mq.c | 8 +++----- 2 files changed, 30 insertions(+), 27 deletions(-)