From mboxrd@z Thu Jan 1 00:00:00 1970 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 3F08DC433F5 for ; Wed, 2 Mar 2022 12:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241701AbiCBMPI (ORCPT ); Wed, 2 Mar 2022 07:15:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241707AbiCBMPE (ORCPT ); Wed, 2 Mar 2022 07:15:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 429C036B48 for ; Wed, 2 Mar 2022 04:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646223260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kghroLwTmGzJqs7ksDSoJhAx7Na2hOM5Czt7RblWWlg=; b=JN0j8T2I2aFyaKwNTmbeYjdzemvC9JVdwk2VfT7TvA0zaY0z9D2xQe/rfhbwGQAuVU+s9q QWwMRSFro7+mL/imrb8dE1i0ADHasKRZVwFhhNKVPuubTVg7I2HTc9NknTSljLWambaTED jchUY268ezGRYhxaVnp3CjWSkeT3idw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-141-xBM333TVO8Sc7I-8j24fgQ-1; Wed, 02 Mar 2022 07:14:17 -0500 X-MC-Unique: xBM333TVO8Sc7I-8j24fgQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 45EF18070F0; Wed, 2 Mar 2022 12:14:16 +0000 (UTC) Received: from localhost (ovpn-8-19.pek2.redhat.com [10.72.8.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 900A71053B07; Wed, 2 Mar 2022 12:14:15 +0000 (UTC) From: Ming Lei To: Jens Axboe Cc: linux-block@vger.kernel.org, Yu Kuai , Ming Lei Subject: [PATCH V2 0/6] blk-mq: update_nr_hw_queues related improvement & bugfix Date: Wed, 2 Mar 2022 20:14:01 +0800 Message-Id: <20220302121407.1361401-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi, The 1st patch figures out correct numa node for each kind of hw queue. The 2nd patch simplifies reallocation of q->queue_hw_ctx a bit. The 3rd patch re-configures poll capability after queue map is changed. The 4th patch changes mtip32xx to avoid to refer to q->queue_hw_ctx directly. The 5th & 6th patches fix use-after-free on q->queue_hw_ctx. V2: - use xa_for_each() to implement queue_for_each_hw_ctx(5/6 6/6) - patch style change(1/6) - rename as suggested by Christoph(3/6) Ming Lei (6): blk-mq: figure out correct numa node for hw queue blk-mq: simplify reallocation of hw ctxs a bit blk-mq: reconfigure poll after queue map is changed block: mtip32xx: don't touch q->queue_hw_ctx blk-mq: prepare for implementing hctx table via xarray blk-mq: manage hctx map via xarray block/blk-mq-debugfs.c | 6 +- block/blk-mq-sched.c | 9 +- block/blk-mq-sysfs.c | 12 ++- block/blk-mq-tag.c | 4 +- block/blk-mq.c | 158 +++++++++++++++++------------- block/blk-mq.h | 2 +- drivers/block/mtip32xx/mtip32xx.c | 4 +- drivers/block/rnbd/rnbd-clt.c | 2 +- include/linux/blk-mq.h | 3 +- include/linux/blkdev.h | 2 +- 10 files changed, 113 insertions(+), 89 deletions(-) -- 2.31.1