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 BA5FFC433F5 for ; Mon, 7 Mar 2022 06:44:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229463AbiCGGpP (ORCPT ); Mon, 7 Mar 2022 01:45:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiCGGpO (ORCPT ); Mon, 7 Mar 2022 01:45:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14736443F9 for ; Sun, 6 Mar 2022 22:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646635459; 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=3AZmlDo+7wLhcTwp83fsqeeuDBi2J9b2db+Rmrfmlxk=; b=f2DaS5rlGgLe2PdmGs5WPCSEg7ywKjd/X7wwfLut3VHGxy057wlgm/EoFtdMZY71QzjXG+ DbmQ3zJost+n0dV5BZyQRsYCyiFX5wCg9QXvEkL8njbhvdVPNU3iwui2mSdrT2gxq2dQW7 +n6cm0+R3KC8GP27s74r0Jq0FdZcbr4= 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-172-enpGZIq1PBS6QWj7ECLphA-1; Mon, 07 Mar 2022 01:44:16 -0500 X-MC-Unique: enpGZIq1PBS6QWj7ECLphA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6FAAF180FD72; Mon, 7 Mar 2022 06:44:14 +0000 (UTC) Received: from localhost (ovpn-8-23.pek2.redhat.com [10.72.8.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 563B462D4A; Mon, 7 Mar 2022 06:44:08 +0000 (UTC) From: Ming Lei To: Jens Axboe Cc: linux-block@vger.kernel.org, Yu Kuai , Christoph Hellwig , Ming Lei Subject: [PATCH V3 0/6] blk-mq: update_nr_hw_queues related improvement & bugfix Date: Mon, 7 Mar 2022 14:43:55 +0800 Message-Id: <20220307064401.30056-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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. V3: - fix smatch warnings reported by kernel test robot (5/6) 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 | 16 +-- 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, 116 insertions(+), 90 deletions(-) -- 2.31.1