Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp208499rdb; Sun, 28 Jan 2024 22:21:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IElBUrOOiiXeN0tWgmm+CLQJiGE6Wie6gbrwxDvIc/2AcKWzM42dSBm7TTkn1ZAcYjYqPL5 X-Received: by 2002:a05:620a:2495:b0:783:f409:801e with SMTP id i21-20020a05620a249500b00783f409801emr4041826qkn.108.1706509260981; Sun, 28 Jan 2024 22:21:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706509260; cv=pass; d=google.com; s=arc-20160816; b=AN3o3hvye7yU4wZWJVwTbZ6+74ievLPFeWbRRT6eKwTzI3t0i4Wsg471VrMP5vFz+u 6H2Is7afT3Yn4zLyOdZQ5chYesjcwem0pO3XzEWYRceLnk3Dz00NEeGMGkA84Fi0ahrp OQU8QV4YvWI2Q5fZYF2E8psjuFnDxtNiA6m0auMzSa0ZUb39uT4z/F/bHNk+SwUwg/Fu pcxXrMgSHhPydXtKy3INWPPFKLj3FElZmj+UtKSjJCnR+skF/LmYgQ93WYBBo8zaGkZM S+y4vKg8Ubv1AIrSx9HAiZrIt78vosqNv0oUjn/0/3MPklFxl9rSkyOPIbpCqm7gOa1L lykg== 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=vSx5jpmmLEewlonMu1sE/caa7FmbXF5z9XALmJJ8S2U=; fh=BckUm0MwWwGm6VI9XYHGADiT+nUL00u0YWWuj2vuVpc=; b=w3MuEW2CdKL/ltvY+ivZYmBGp+mXRYXbiI+hTVH47FtWPuJQikG5cvy9iefb03QZ6c 6hEKF03G1fEqA8IS/O4UtYa9cjOR2aQj92eVIFsyIhikYKXDB0/WHpXV5dsqMx43EE/J TxdhsJtNC6nfg4IXdtVQtxVQYoSWYhumP2od6T7ZBuvX4Q7T9KgK9ufgdJCN+1AJY5jW AQPfKdcnvCyQ8fEWQ9ZHk5ViRJipC1k3lRVO665M9AZ5qIAPBpYXfIgBruInFjPIjF1W bqoEuuoopdpkehVJIDqjf7zTS9frFpf3LuFm73dUoDKbzBNrz11F92bbjq+yGYCxrfWD lQfg== 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-42221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42221-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y23-20020a05620a09d700b00783dfe4b375si5369299qky.242.2024.01.28.22.21.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 22:21:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42221-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-42221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42221-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 B80081C21A6C for ; Mon, 29 Jan 2024 06:21:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ED2E4C630; Mon, 29 Jan 2024 06:20:43 +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 8C43A4BABE; Mon, 29 Jan 2024 06:20:41 +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=1706509243; cv=none; b=jBNiESgIhefzXuVHaz/dmCZdXx471c2h8nt0EE/IMxpDYoN7MB/CJFHGzbpIMtYbjrZhMH1xQn52uelbGNcyG/kBwYfviJvszYebJwEfHJ/SKxOQFVrou5MwGqk/D73S8Ic0tmnw2q+YYQxdzT7AY5YX2HiSeQ4oC87pP9CDJ9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706509243; c=relaxed/simple; bh=a3ABtJCzIyYgu9Y0K7TLjoHutY0PL9Nh7ra7xgZiwb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OiFXPqE1frxXp7p6hj25V3Go63XbrKIkR0L69FTxxskll67ow6MDlZNakiiC0JqYEqt6twCUs+DSqQFPJ1HGMZxJESlkzBiXI4JSgDH8Kw4BWlClrlvZBHKhR/nYoDKZdowXf/mxO4/17stK+4XSgtOtWNnukjjKxLdAAgUiqAU= 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 95A9768B05; Mon, 29 Jan 2024 07:20:35 +0100 (CET) Date: Mon, 29 Jan 2024 07:20:35 +0100 From: Christoph Hellwig To: John Garry Cc: Keith Busch , axboe@kernel.dk, 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, Alan Adamson Subject: Re: [PATCH v3 15/15] nvme: Ensure atomic writes will be executed atomically Message-ID: <20240129062035.GB19796@lst.de> References: <20240124113841.31824-1-john.g.garry@oracle.com> <20240124113841.31824-16-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: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Jan 25, 2024 at 11:28:22AM +0000, John Garry wrote: > We have limits checks in XFS iomap and fops.c, but we would also want to > ensure that the the block layer is not doing anything it shouldn't be doing > after submit_bio_noacct(), like merging atomic write BIOs which straddle a > boundary or exceed atomic_max (if there were any merging). > > The SCSI standard already has provision for error'ing an atomic write > command which exceeds the target atomic write capabilities, while NVMe > doesn't. Can you get Oracle to propose this for NVMe? It always helps if these suggestions come from a large buyer of NVMe equipment. > BTW, Christoph did mention that he would like to see this: > https://lore.kernel.org/linux-nvme/20231109153603.GA2188@lst.de/ I can probably live with a sufficiently low-level block layer check.