From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=199.89.1.16 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796316104; b=E9qY5U+9d2F01mMoe+o0Z/y99vs5B7WsKezsbrN5nJcS342eo4hXUv1yuPOaWUF4h+WO Q57Hm7CbjY2ZQ2WU2vfo7sGBz28v107Nitqy+zu0x3sUpIcHwZK59Wzx2iXyIgZyGHzzE Fe84oGkXOyYlZRi/fHr+mPeQvcdQSiG2AWSfZxmzSnNH05kWETZ2uYMr9aJGJ0SssWeWu rC8uHLBWIKhhkQiv64GzeGbBy2VeKC9fzf8NCiO0+mtvcPtO3spR0o8wf8SIK3Oi64IlL sxDh9Eoc/VAJ0ZFWXPzVtV7JKDwhIYc/XV01T3zNPoB17Kqnrhx25+bR+zXQ0B/ETow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796316104; h=DMARC-Filter:Received:DKIM-Signature:X-Virus-Scanned:Received: Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=3nDlf0WuNyrU2xpaOgFYBFUYtkndF2VjDaGjgq4FWZ4=; b=aJUp1fS2xcQnLqTRxSJj1b5xRr8SPRfx5qS4M51z0BMFP9V2C7CIxcE+XykhIWIhdXWz DIJMB2nnLFxYUm87KzZdDGOCqX65FFxPvZHpQ3Lghi7J3jR6yw9LRv1uXdRF8MGcfnYq1 veFuqUTpfskZiOxuhpWCfHeZO8NK/3clgG5KQVKs8asdQPYnisDmrzpM8DTCflQt7DaPt gfezg31QMFVpx57gR+6aiWKWEHzuYDxkswN9PKxUqpyT5MB53juMbTWRF3F8l/FX3igxX 2QT/qkODPQbLAw0eQJCDi1Dypqx2iQ/AUT/3DiuWnU8Z7g4Y++f0jx3UI++bl7Lszkg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=HBs+oR82; arc=none smtp.remote-ip=199.89.1.16 Received: from 013.lax.mailroute.net (013.lax.mailroute.net [199.89.1.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30D87606A330 for ; Thu, 3 Dec 2026 16:41:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30D87606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=HBs+oR82 Received: from localhost (localhost [127.0.0.1]) by 013.lax.mailroute.net (Postfix) with ESMTP id 4jgL4R489yzlfvq4; Thu, 3 Dec 2026 16:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1796316100; x=1798908101; bh=3nDlf0WuNyrU2xpaOgFYBFUY tkndF2VjDaGjgq4FWZ4=; b=HBs+oR82Wcq+dhGGf/d6fjRjLu1ZRbYdltC3aETQ xk3Ofl5J+c3PilEWNUpn+aJpRDcZvLCP1eLK5EfzxhlTlXFL+Ls9UD39YmUUPq9Y ItjlL27Q1z/JZ9HYCVvH9vgi68AZoGS3obX6ai4IcXzpCG2JYpJ98WGEI5jV3JI8 s/2JR4ZTs72c2xX2Evn1H0gSrPDAwslaU05Vnn3FeLIh6T9zwL+Y7IC8jliDvUfW 5RdhLvC75SrXlNng/rus1Sqi2ziu/pyerU7pwkjQYz94Dl/wI3hdMzhgEtJq8MyD wMBMs38FmBNSAAE04RiIAKoUi8J6gCRglOkQojvEIo0sfQ== X-Virus-Scanned: by MailRoute Received: from 013.lax.mailroute.net ([127.0.0.1]) by localhost (013.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id q8Vcf9sidiCd; Thu, 3 Dec 2026 16:41:40 +0000 (UTC) Received: from [100.77.36.205] (unknown [104.135.183.85]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 013.lax.mailroute.net (Postfix) with ESMTPSA id 4jgL4N0Xj9zlfvq2; Thu, 3 Dec 2026 16:41:40 +0000 (UTC) Message-ID: <6cebe190-b33e-47c7-81f0-e0d838cdd803@acm.org> Date: Thu, 3 Dec 2026 08:41:37 -0800 X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] block: remove RCU protection for tag_set_list To: Nilay Shroff , axboe@kernel.dk, mt4022@columbia.edu, hch@lst.de, mkhalfella@purestorage.com, kbusch@kernel.org, josef@toxicpanda.com, tom.leiming@gmail.com, tz2294@columbia.edu, gjoyce@linux.ibm.com Cc: linux-block@vger.kernel.org References: <20261203152318.654390-5-nilay@linux.ibm.com> <20261203152318.654390-6-nilay@linux.ibm.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20261203152318.654390-6-nilay@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/26 7:22 AM, Nilay Shroff wrote: > Subject: [PATCH 1/3] block: remove RCU protection for tag_set_list The list head is called set->tag_list. tag_set_list is the name of the list entry in struct request_queue. Please consider changing the subject into "block: remove RCU protection for set->tag_list". > Commit 495f22c5a99a ("blk-mq: take quiesce_lock when removing a queue > from the tag set") ensures that set->quiesce_lock serialize both serialize -> serializes > - /* blk_mq_unquiesce_tagset() runs the hctxs, which are not RCU freed */ > spin_lock(&set->quiesce_lock); > - list_del_rcu(&q->tag_set_list); > + list_del(&q->tag_set_list); > spin_unlock(&set->quiesce_lock); All set->tag_list modifications happen with both tag_list_lock and quiesce_lock held and all code that iterates over that list holds one of these two locks. Nothing uses q->tag_set_list after the queue has been removed from the list, so switching from list_del_rcu() to list_del() is fine. Hence, with the above nits addressed: Reviewed-by: Bart Van Assche