From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E13B6A33F; Thu, 3 Oct 2024 21:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727991047; cv=none; b=Bm5cRSTm7o2QtxmkYJ3yqYY96bzIrUmj61RhDwZKV9eC9EbfB9eCnPhFQ/gP4M5YcQKb6jatHQz0iUlCYDoCUAXcmaTb0gjSfJDx2cJMlKXN3nYwrQIvsnk/0zRU+fKvVc4CIJK8lrGvLn1ORJx80YC6fpi2Uh/hUr085oGUL2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727991047; c=relaxed/simple; bh=kakrEADgGfwb+crJK1f9BO1JQPIodE1JT+klBW1nQDQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c1/y69359IAP2xquJj8jCJnWbGlOEtWHDwobUMD6boCQwxThU+uida0d0I0OZz2aJvWIFh8YQWhG7Zq6Zh0w56kwjOwzaCL02bMgeiSlSSScZJgV55vJM6pZya7uFbuAqZ6JprI1Zx4ir+qAX4GdaM6ivwibksk3wqm+77W6Ufg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=syMmYGBc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="syMmYGBc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 860DAC4CEC5; Thu, 3 Oct 2024 21:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727991045; bh=kakrEADgGfwb+crJK1f9BO1JQPIodE1JT+klBW1nQDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=syMmYGBc8278Fi5fZMuGoSb0+QSDyVF5vklFfXHH0+RwIEfjyK5N9uCe9AtXAL+kJ JdQiRl+BNbjALIP3HDXbMyVcsesYxyD3CFJo9OTEVLQJsOLCACI8Ji9ichvhcosv9W emH/RNR/I0G2xm3K40KT0QgNb6YsmQvnO2/kn+D3nwgKWTDy6owiCqtivQPavIDbar my9qLJAIUyoG4f/oSBajUE8ZA3ZPnXaAaVz9PO7T1eVjFKB3FmtGfPh08YRkJE4LEs iGZN2vRi41/YWiVUaXmCDkDyEnfchATmgOaxftzM7Byt/KXCn5a/DL5iWG+XBNrfKV VAhpdfF9k29AQ== Date: Thu, 3 Oct 2024 11:30:44 -1000 From: Tejun Heo To: Jens Axboe Cc: Dan Carpenter , Waiman Long , Yu Kuai , Josef Bacik , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v2] blk_iocost: remove some duplicate irq disable/enables Message-ID: References: <0a8fe25b-9b72-496d-b1fc-e8f773151e0a@redhat.com> <925f3337-cf9b-4dc1-87ea-f1e63168fbc4@stanley.mountain> <3083c357-9684-45d3-a9c7-2cd2912275a1@stanley.mountain> <68f3e5f8-895e-416b-88cf-284a263bd954@stanley.mountain> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Oct 03, 2024 at 11:22:09AM -1000, Tejun Heo wrote: > Yeah, that should be spin_lock_irq() for consistency but at the same time it > doesn't look like anything is actually grabbing that lock (or blkcg->lock > nesting outside of it) from an IRQ context, so no actual deadlock scenario > exists and lockdep doesn't trigger. Oh, wait, it's not that. blkg_conf_prep() implies queue_lock, so the IRQ is disabled around it and adding _irq will trigger lockdep. Thanks. -- tejun