Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1006558lqm; Thu, 2 May 2024 02:22:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzUGPRQGSY9LkmRsHsjWbD6UiCnn0ycEg49+bsNvCrksyXv5+I1lnEECw93uN4a9NDQgRDHULLW9NAjoisCuUBD5zVUHQyQyKO61fEIQ== X-Google-Smtp-Source: AGHT+IHFTdNLEuyG7upIEc/VlefgVB3LRWqvJ9z3bwG+t/anXnfjPUYYSXyYIRDvgRjndhSKDqTe X-Received: by 2002:a17:906:f9cc:b0:a58:8daa:b898 with SMTP id lj12-20020a170906f9cc00b00a588daab898mr1869016ejb.27.1714641736900; Thu, 02 May 2024 02:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714641736; cv=pass; d=google.com; s=arc-20160816; b=FqTdMDspHHSftbEaxZL6po0mwWSQIF/U+n+XudYm/b00nKe8GNd64JAoW78cb9HJ22 744MGuv3AlKaGXYE18wetE6WpgtU8h2hK2U5K0eicD5EDybtwP0evK7g8ekldtRCYjbp A4Da3VSscnBuI46M1qI5PRFd4vtZ3q8LvrwFMwkxRPs0NzW0VWst5MCwplk5ddFnP5Pe TND0l/sH2X0zak6B3P02W8H4nXi+RGQ/n1giCk75Prrfk4hT0CdsBlvvbX/gqRs4V9UN CRk5I8y61cT7r9Ij5jv+wfhAEL1O9D+oLPK/BC6v+ugHSJW+P8AjcBX9WUD7gVUd68uG 1mvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xk8NY8yS0I7BW3IiVNcNaWblOMXw9d4l6MbCzMzN5rM=; fh=zFEnstRlf8kTu+MZoUAgVvIM7U1BJr65rIe8Exg6k3c=; b=frEOBx5bZ88Zn7K3qsVBnOF97N+Exkro5fELaJhalTdwz/DZLpzNlOHFo0JJJ09t0e irvnL4XpziUo1Gju/CsoKxMH0l0Vr1HaH/znfDItZc9/krSXKZVTLVQaJNjNNPFs4L+I agriataT9tyWJk/3LARXi0cIlHgGg6TdWJjvDDVokRle3zdJf/fjua2zOXE9BTYH1k+/ MQMvei8HYnPsifvEhVVoHli5PNqRZ+R1eHo7ToZq7n/UDh9Cjs/Dim8HkTkmugy14TRY a+ZlnURFSep1oiaJDrz8gTT7+MkL9XdPXs7AkU9e90uf8IhpxiQM/nVMh61u3WnGXE5/ pF6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DMR9I+e6; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g18-20020a170906349200b00a5213e9df5csi312585ejb.1029.2024.05.02.02.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DMR9I+e6; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2259-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 3DCE11F21D35 for ; Thu, 2 May 2024 05:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D82320B3E; Thu, 2 May 2024 05:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DMR9I+e6" X-Original-To: linux-ext4@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9B6C31E494; Thu, 2 May 2024 05:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628709; cv=none; b=KP+ZDS+vXLH8TqmN/Se/uKX+PNpml2upBRHHGPUfkDliuBZ7zLfLqdSG8J2ENWoCwTaa/4morETyO5BbjZYMQTeigcLRp8H+7zjb9nDZfv2KSLA/dk+yEN8xSvrA16rQbIConXvzMBbZmxL6CSavGYgOuzmq8ztWlcX8ecNsJZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628709; c=relaxed/simple; bh=IXN/mfvF6cGl3Hq0J/SzZeRjYZXcjAMPFguqTJ2l1N4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JeLW9FokrHLFTAZS5NX7yFJmuN44QufARK4rS1AdBOClCBhjFQ5owoWxdtO2OV2iFhCpHFuqg1QvprIVPbvRvbRZEOTkVn5lN9jbbWZqkDdP6Wgo6dWjxALk11TWycwXvpWog6GMp4RVuZi8lBGyIPMiud+0N62ExxLIl6/gNTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=DMR9I+e6; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xk8NY8yS0I7BW3IiVNcNaWblOMXw9d4l6MbCzMzN5rM=; b=DMR9I+e6ihjS8ejEzjOFgU2Ctk u4cIMWc9s/FKldKGzPfscbmSGHFhGa28QkRh/0/kIdOwQPs7pGZgZbMdSnhhCP1W1d72xzP7Cg6V4 EbNh/6ZZH36I4f9JX6U4y0Rg0Kz+/qdu8aOA3mnWICgmOuUC8UBl1C51IHUzghjcasWYrFlijEWZP KOhKLMoWHxMroa6TljN910WxGRerxgTesBKlhzo17vAPKKkYs/s495zTUG6Mn59ZN5r5q5WsSVCjn Yr9YDbAqFD6gWFIyYjtGqt3a8rUHXi/BLmFxEMNIsM5KIVzcH9xk2zYpZQW2msWjITM26JHxV89UB CikSHXMQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2PFi-0000000BYGx-2wbq; Thu, 02 May 2024 05:45:06 +0000 Date: Wed, 1 May 2024 22:45:06 -0700 From: Christoph Hellwig To: Jeremy Bongio Cc: Ted Tso , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, Jeremy Bongio Subject: Re: [RFC PATCH 1/1] Remove buffered failover for ext4 and block fops direct writes. Message-ID: References: <20240501231533.3128797-1-bongiojp@gmail.com> <20240501231533.3128797-2-bongiojp@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@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: <20240501231533.3128797-2-bongiojp@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, May 01, 2024 at 04:15:33PM -0700, Jeremy Bongio wrote: > From: Jeremy Bongio > > ext4 and block fops would both failover to syncronous, buffered writes if > the direct IO results in a short write where only a portion of the request > was completed. > > This patch changes the behavior to simply return the number of bytes > written if the direct write is short. Please don't combine ext4 and block changes in a single patch. Please also explain why you want to change things. AFAIK this is simply the historic behavior of the old direct I/O code that's been around forever. I think the XFS semantics make a lot more sense, but people might rely on this one way or another.