Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp142589rdb; Thu, 21 Dec 2023 05:22:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGOTbCgTdMMoNy9GpZKL/Cu0VcM3uYJWYXEMf/wI842+Z8fcpPOvQ+6ZuYASgnCCR+0YEf X-Received: by 2002:a17:902:6507:b0:1d3:b609:eb0b with SMTP id b7-20020a170902650700b001d3b609eb0bmr792234plk.27.1703164978989; Thu, 21 Dec 2023 05:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703164978; cv=none; d=google.com; s=arc-20160816; b=emIjCCjACsjQvpPWU9YrZra+99wWFj7oFBuA45sbpTNrk53wcnxzLA4zyT2nmRWlbg i2yRDDrdct3j4mw0m/V/EF6sYjDLFs0qOQnfG/kjN4r6xdIHIY+W5r4Sm0FqWalEOqjo b/mRgphLEtSoKBDbbNJKY+2uNow0+LdhatyTnY3GLgZnPRWNnpGCQcW5oYeJt8cjn3Ql RljDD7RED5CWpacliy1ZA8cMasYCM2h3xorqSghO5DfabLrb0LTLMtfEvcoB82Qou7ul CClooiAPXf/WXOhOZLZ3l7sc+vQgqNYgDkZrSXlwLz2TXUBnJpb9XbCWqIe5a0BufmBJ ++vQ== ARC-Message-Signature: i=1; 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=aKsK9Ak5aQgKdR0xCF8qKbNC4Mvk+Z+2sHlCt6ax0us=; fh=pRFDb1qzPVEVLkPLiwPjjL6kEjGObSneCb7bU5CT3Q8=; b=h5tJ3GkrMzpivfUIlV2prHUvhTcljau1mwyZKeq+T0L2MeswzLk2LtyMzVoh44bC+m WfleXUYBcDJ5ZHhBHo+JNslpAtXbirDYz+5ZpIjI4Y2dEd6c/Y2qt24fJdKZHB1iUbzW Hnm2BeRwg6ed2kKxcuXrGLp8m5sLvCZRIgPJtm8CsDrol9V+zbU93ma45SDGFY90hiRT kO+weNlS3LELvjrLlSofv3xW+hZUSv+A3Mmh9LcduQLxzZLvuKLgR/mb0WazOWHfhfEK P6Z7Ps3zCQJHuwDl15C44I3nvbUXwGATGF8IOc5LQTY+bJdLyznN9mkHwuF4ZDj5337z VB5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8444-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8444-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jd10-20020a170903260a00b001d3628f896csi1450541plb.552.2023.12.21.05.22.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:22:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8444-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8444-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8444-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9C47B283658 for ; Thu, 21 Dec 2023 13:22:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0923C745F5; Thu, 21 Dec 2023 13:22:44 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 63FD873197; Thu, 21 Dec 2023 13:22:41 +0000 (UTC) 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 4CDFA68B05; Thu, 21 Dec 2023 14:22:36 +0100 (CET) Date: Thu, 21 Dec 2023 14:22:36 +0100 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , "Darrick J. Wong" , axboe@kernel.dk, kbusch@kernel.org, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, 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, jaswin@linux.ibm.com, bvanassche@acm.org Subject: Re: [PATCH v2 00/16] block atomic writes Message-ID: <20231221132236.GB26817@lst.de> References: <20231219052121.GA338@lst.de> <76c85021-dd9e-49e3-80e3-25a17c7ca455@oracle.com> <20231219151759.GA4468@lst.de> <20231221065031.GA25778@lst.de> <20231221121925.GB17956@lst.de> <20231221125713.GA24013@lst.de> <9bee0c1c-e657-4201-beb2-f8163bc945c6@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: <9bee0c1c-e657-4201-beb2-f8163bc945c6@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Dec 21, 2023 at 01:18:33PM +0000, John Garry wrote: >> For SGL-capable devices that would be >> BIO_MAX_VECS, otherwise 1. > > ok, but we would need to advertise that or whatever segment limit. A statx > field just for that seems a bit inefficient in terms of space. I'd rather not hard code BIO_MAX_VECS in the ABI, which suggest we want to export is as a field. Network file systems also might have their own limits for one reason or another.