Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1955505pxv; Sat, 24 Jul 2021 00:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh4g4dBqgo224aL/a+a0cq0KBVBRlkvIN/+IADr7ZdEfTOlhwskceevWinyM4qak3hZ3zx X-Received: by 2002:a05:6e02:1a6d:: with SMTP id w13mr5582428ilv.299.1627111215516; Sat, 24 Jul 2021 00:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627111215; cv=none; d=google.com; s=arc-20160816; b=s9aIyrHvs8ekWHlQA9e9u2mEzZDYxlxu9rKY1O410HkLyTzQu2uVIq8RGPqyca2XCC sS9+gJ13OPrJX+mwIQu/LL+VgfQt0E/cjpbxLP3Hr8fgmw1nqiWkAJA0R3b3wf1/CkPI dF9YZARyc5iYT9tTFgSdaizPoskTuQ9q9aDFuB1RreetC9EVdDh9Yv5PcDt62LONzblu /0VqmrYILblTM5jzqvmMKXy5EVgW2lrwjlwRLxmP3snC+C7d+Q4udJjhMq2I32dYZ/cs H3CgM8gqD/Jh08Q0shmAPJxWuP5mscSiSaJ6eaO5D3HyNF1MJckNUNv6darKLm7vjJwu oOmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O/XU7BaOJ1uvC1EkMCQUlQz3U2U8xvRd2MbfcwD2IpA=; b=yjqKq0MQc/uASZ7o+GvScZvLbU/f9F3i/Iw6EQFGSk+FInSXSynlQswyN2fndTQN8L fPCQKvuYbwT78DlMZdiZLyvRayRU/Z27WEw+frRhJgEVVBGVcGe8HYpdYSgXEJhJBRte VVvRUnXU1v+OUHHob5+/D4jVWX6cnVYE4Ei9Jk/W+e0GS23Wp3/nSqAOzKUYVWNdXc5w mROE0TbtqqmLmUdwJehACQ5963igBAdkYQKueS8eSb7zYx8TPV+uDiNz1S5CyFC+sGUf xl5TreDRkC2Japn+U56LvGaK/MIlLKxsHBVBZ6zi5vQfSLVsjr+t9wjKUpRR4a3yj2b+ EVTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MDgreUOW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si35227765jat.100.2021.07.24.00.19.59; Sat, 24 Jul 2021 00:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MDgreUOW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234244AbhGXGjM (ORCPT + 99 others); Sat, 24 Jul 2021 02:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234085AbhGXGjK (ORCPT ); Sat, 24 Jul 2021 02:39:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76EB9C061575; Sat, 24 Jul 2021 00:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=O/XU7BaOJ1uvC1EkMCQUlQz3U2U8xvRd2MbfcwD2IpA=; b=MDgreUOWODAfOvefRAPYEl3Oia dHU4LYmu8cbdWaaqhowrU9J6cLhO6rLSUkrKQy0hsdL3ePEwcProggNMwZU75a92cRzyw6YUByyPQ 5Y9tgXQqRw4Dlqh6wGhbGvJGcbVMxiFloSSZdc4WjU1y9Z0a0eStaG+OMLSPdiTV1bn6NuTRM9ZDF xUDXHwdc8arrh21Zj74m9ppkAhoqn0v6yJpyIxNTnNmDMOjsSClzfb7I+oUFSrsBHY15IW2yzWR66 XSg8y9K9nagTX9+/MW2gvdnz6aUoY0TbQxc1iUbHC92XmfQd0Tym2t+KeBL/HI4T3iAfcR6zWo6OI ElGynbeA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7BwJ-00C4tG-OZ; Sat, 24 Jul 2021 07:19:17 +0000 Date: Sat, 24 Jul 2021 08:19:15 +0100 From: Christoph Hellwig To: Eric Biggers Cc: Satya Tangirala , "Theodore Y . Ts'o" , Jaegeuk Kim , Chao Yu , Jens Axboe , "Darrick J . Wong" , linux-kernel@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH v9 5/9] block: Make bio_iov_iter_get_pages() respect bio_required_sector_alignment() Message-ID: References: <20210604210908.2105870-1-satyat@google.com> <20210604210908.2105870-6-satyat@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jul 23, 2021 at 02:33:02PM -0700, Eric Biggers wrote: > I do still wonder if we should just not support that... Dave is the only person > who has asked for it, and it's a lot of trouble to support. > > I also noticed that f2fs has always only supported direct I/O that is *fully* > fs-block aligned (including the I/O segments) anyway. So presumably that > limitation is not really that important after all... > > Does anyone else have thoughts on this? There are some use cases that really like sector aligned direct I/O, what comes to mind is some data bases, and file system repair tools (the latter on the raw block device). So it is nice to support, but not really required. So for now I'd much prefer to initially support inline encryption for direct I/O without that if that simplifies the support. We can revisit the additional complexity later. Also note that for cheap flash media pretending support for 512 byte blocks is actually a bit awwkward, so just presenting the media as having 4096 sectors in these setups would be the better choice anyway.