Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp426528rdb; Mon, 29 Jan 2024 06:39:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvRtHGnWPu2Xzks6p+ofTmsPpDCzAiTNM8clzxueSBCQWxKHR9GdsCwLGOT0fxC9ZDxbPg X-Received: by 2002:a17:906:68c8:b0:a35:32ae:e0c0 with SMTP id y8-20020a17090668c800b00a3532aee0c0mr4527527ejr.3.1706539167246; Mon, 29 Jan 2024 06:39:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706539167; cv=pass; d=google.com; s=arc-20160816; b=HgfvW26taWzDT1LskOmCWrdm6gn9GtlDS1n3qRPygzLlrJJB0txfdkEsW9YUImHxuv G4beb3eHS5dKrSVN4dhpawjcFoepB/yjzmCcmkALVpwiG/dDWrFOK3qoQ7GXJbZNVb8V Pe5kKt0XZMTh2ij8TXFjOVw6V+a9P55OJeOq5ok0F1doIv0iwFYpygZkGBdzWDzLG8Hh +FjFZ2IYvGQzIxi6oxHXuBBzMIJkF9nhvHxXFz/HqeWFyln9YF9FgosAKJq8+5Cgtm+p KqbPzNF2hGrmiPB8sDK+Jvlo2MV6Ijrn+s3k4duutSM7D/AzOhiV2crWy1v/vCb729vp BANw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=9EklWgIl7f2YxkVHDck9gMHvU/i9NPS04u1tBkQjqRM=; fh=skryjy3LgDk1utJLyLyheStVStsf0inbJ06fYFJ0LcY=; b=UktuMvzjtpatW2LGD9mY4C3pHDKvX7ZsSGaQbjaEZvDyIjyq11uw5sM6MaWfKoGvAN Xg/JkzhIOY9Uh1htpDwCQqnVYkBWZ4c/ZRnAboWKqn0EoYBJ5ndxy0MHe8JVDdHxnWj6 NmWS0b1BLz+YhvQJ9vMbdgGOpHM58v+niQaabx1RIsjnkHIC9TYFVnYhDRYSP1yMBsLU pHdwwsOVR5abDl48nmv3ibUY4bnoEPBSg+NLtKGzEuUJ4K5wlRClHmyZDt8YN9PG5ztX K1CjjidPrYRVT4znTox1ofiK9DIck1WX/mUqpH53raEwqeOrTPHKePAQq78xVFd0ctVA jkEg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-42928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42928-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gr16-20020a170906e2d000b00a28e6fd9461si3503087ejb.647.2024.01.29.06.39.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:39:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-42928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42928-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 067DB1F21BA1 for ; Mon, 29 Jan 2024 14:39:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C303152E1A; Mon, 29 Jan 2024 14:39:10 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 F40725D747; Mon, 29 Jan 2024 14:39:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539149; cv=none; b=ohlulNzUiO2V7bHLRFEY6zK5ZZNKyEgzKagKm0eEL3dLIUGlASGHrM5BFIvpTJm+rUhemodxI0i8kPucLAddZ0mZiX0ProeE8KS/96LFvhulevRbAYmlnj7d2DKxbdL+wiiCCW589dYhLN8frK0kUffLugi5JxU+nD2KzhEOj7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539149; c=relaxed/simple; bh=cl20W0OSVEqhA4Wo9siMG+VGLtonLKnMv9sFvFklJ3o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZezZmybF1Kb9Mmg2KR9KV6zGBlFiClCgC4bKxNK+4AztGLWdaqCdN0QpL1t2t+3VKrwxMQmZJdLPeLF5JMTtULEB5fhxke2e3e9KJxCwMlrftiic10z7rDnXEL3AmENA5GKUrXC9v5NBhIQxjjg1uDmc+QZ72+AShxGWl8oQlXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id BF20468C4E; Mon, 29 Jan 2024 15:39:02 +0100 (CET) Date: Mon, 29 Jan 2024 15:39:02 +0100 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , martin.petersen@oracle.com, Keith Busch , axboe@kernel.dk, sagi@grimberg.me, jejb@linux.ibm.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ming.lei@redhat.com, ojaswin@linux.ibm.com, bvanassche@acm.org, Alan Adamson Subject: Re: [PATCH v3 15/15] nvme: Ensure atomic writes will be executed atomically Message-ID: <20240129143902.GA654@lst.de> References: <20240124113841.31824-1-john.g.garry@oracle.com> <20240124113841.31824-16-john.g.garry@oracle.com> <20240129062035.GB19796@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Jan 29, 2024 at 09:36:38AM +0000, John Garry wrote: > That would probably be in blk_mq_dispatch_rq_list() for block drivers with > .queue_rq set, but I would need to check for a good place for ->queue_rqs . > I can't imagine that we just want to inefficiently iter all rqs at the > ->queue_rqs call point. > > However considering the nature of this change, it is not a good sign that > we/I need to check... I'd be more inclined to leave as is. Heh. At least early on having the checks in one place in nvme makes me feel easier for sure. If we can easily use the block limits for the checks we shouldn't have to keep duplicate values in nvme, though.