Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2870405rdb; Mon, 12 Feb 2024 22:26:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIFtQDb0EweojQvZqAMO0M3XgSDB6OOgPt1CqWsa3qubDVbHB7A/PmtfFD1M+7AtVuyKiI X-Received: by 2002:ad4:596c:0:b0:68e:e27d:17cf with SMTP id eq12-20020ad4596c000000b0068ee27d17cfmr1743908qvb.14.1707805605525; Mon, 12 Feb 2024 22:26:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707805605; cv=pass; d=google.com; s=arc-20160816; b=O6KSMwe+nXVftmcam7FPEtDU+TKSO5gHqMwd+63dAWrCc8L6vxJ4dN5VilevLBKge+ 1A/Vb1KVfuuw8R6AkU+wGmXZb9nRBaTHJ0mne4e6JAatzCDT3O7v8FaKYDkxk0cRWcwm Lxe9sOLwksTTZKB/EQe3CzCX06QQJM7mxkcHimPsJ8+p+g2Lr646I5+SJtHGgMnHHuGe lpMkIVbl2AQhY5Ao3I8ENgOoidKKOMgsCraQd6kGOnhAmwxIHwqPlsAW7nQ5Zd9cw65i wjAHrgvm4BXN34ODM/WfN/r1mrQlqm3CZgYAbE7k2dnMszFwodjyoh7p28JU74wgy6El nuGw== 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=Ji03yx9DEGArKA7IwxF84g55gpa4iklo/tgRCMC4Esg=; fh=kRAix4K4rizs4a2usfnpOsAiQjKSuOJh6nWomztq+oY=; b=IIJzhkn7rnELI+4X//3ACYcQ2/YeGc37zYCDFhXixIr7AxRsFne4HFlO/tmzTeLjNh jSxAUIjm0Muigl6UAC9uVYxsoLNZLFaXc/LMhgSQndceS6/N6XAn+5cdfx8fCpu0qBnf BmclIkx0HjG4GdsXk85c9Sj9djXJ8fu+3rVqi9v3hZQ62NjDQOgK+LYsavmAO7mBY4Nq FbljoMWr9mNl3QrvEVQL/sQDRgXePeZVlH88cZmwKwqy8+yyTyHmuafGznNen3N6rrtV vL77Tq/Pe6egbzg4jecceDBZQcFacvAx6Arl6AXQ1WdXp0BqoyQJ7Dns63j828GAldcq fCfw==; dara=google.com 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-63012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63012-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX4sU6sc43NYXP5CPD2QIOImerrruWZFRTTjn4NNUB85fPUrIk3b/9sMKriyIvCqVMyXKoAsM7SBLV9g3lmaWljH8Wnljar4VGTrY6faw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jr8-20020a0562142a8800b0068cd964819asi2112585qvb.392.2024.02.12.22.26.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 22:26:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-63012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63012-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 491DB1C23314 for ; Tue, 13 Feb 2024 06:26:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECD36168BD; Tue, 13 Feb 2024 06:26:28 +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 522C111723; Tue, 13 Feb 2024 06:26:26 +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=1707805588; cv=none; b=PsNP3ASpUVUlt0SxmBEy6kwUOz9QXWdxG9Rt076Yt9VXaPxpYfb9hg8B/Gmxg9aCHi9WopFrgx3YtsJV00/1UUfxQzf6qW4ov1UlaqJS3MqIwHI+ZKOikJXJJAQPElS+5GR3KeyCfecOtwMXr2qZgtUhwg2KERiovfzA5y45tuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707805588; c=relaxed/simple; bh=+O2tyaoVKyeN1/GpDStbVQXHe/V4WUW88OyGlyBcHMw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DbznzPbMh89GtFvAh08UxlMnnbi4AB5l/BZyIGUS6pI0a3pWY6hwR92lDx2FqFFBobyL4BK9WkPmpWMld5fJ821sE9PbJKFGJ/TnovbpO/j53fXrSFOLeUcawpXhFn/d9eDtG7UXNtjd83mee5rd2/T6ExOyybi7p+CREgVP5b4= 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 44B4D227A87; Tue, 13 Feb 2024 07:26:21 +0100 (CET) Date: Tue, 13 Feb 2024 07:26:20 +0100 From: Christoph Hellwig To: John Garry Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.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 Subject: Re: [PATCH v3 07/15] block: Limit atomic write IO size according to atomic_write_max_sectors Message-ID: <20240213062620.GD23128@lst.de> References: <20240124113841.31824-1-john.g.garry@oracle.com> <20240124113841.31824-8-john.g.garry@oracle.com> 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: <20240124113841.31824-8-john.g.garry@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Jan 24, 2024 at 11:38:33AM +0000, John Garry wrote: > Currently an IO size is limited to the request_queue limits max_sectors. > Limit the size for an atomic write to queue limit atomic_write_max_sectors > value. Same here. Please have one patch that actually adds useful atomic write support to the block layer. That doesn't include fs stuff like IOCB_ATOMIC or the block file operation support, but to have a reviewable chunk I'd really like to see the full block-layer support for the limits, enforcing them, the merge prevention in a single commit with an extensive commit log explaining the semantics. That allows a useful review without looking at the full tree, and also will help with people reading history in the future.