[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZnqUE90IEN_VeWSH@infradead.org>
Date: Tue, 25 Jun 2024 02:55:31 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Chunjie Zhu <chunjie.zhu@...ud.com>
Cc: "Darrick J. Wong" <djwong@...nel.org>, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 1/1] revert "iomap: add support for dma aligned
direct-io"
On Tue, Jun 25, 2024 at 09:38:51AM +0000, Chunjie Zhu wrote:
> This reverts commit bf8d08532bc19a14cfb54ae61099dccadefca446 as it
> causes applications unable to probe a consistent value for direct
> io buffer alignment, see an example,
The required alignment is available in the stx_dio_mem_align field of
struct statx (and for XFS also through the older XFS_IOC_DIOINFO ioctl).
No need to probe anything. And if you don't want to use that just use
a conservativ block size alignment, no need to probe anything.
Powered by blists - more mailing lists