[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250724162553.GM2672029@frogsfrogsfrogs>
Date: Thu, 24 Jul 2025 09:25:53 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: John Garry <john.g.garry@...cle.com>
Cc: hch@....de, cem@...nel.org, dan.j.williams@...el.com,
willy@...radead.org, jack@...e.cz, brauner@...nel.org,
viro@...iv.linux.org.uk, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, nvdimm@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/3] fs/dax: Reject IOCB_ATOMIC in dax_iomap_rw()
On Thu, Jul 24, 2025 at 08:12:13AM +0000, John Garry wrote:
> The DAX write path does not support IOCB_ATOMIC, so reject it when set.
>
> Suggested-by: Darrick J. Wong <djwong@...nel.org>
> Signed-off-by: John Garry <john.g.garry@...cle.com>
Reviewed-by: "Darrick J. Wong" <djwong@...nel.org>
--D
> ---
> fs/dax.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/fs/dax.c b/fs/dax.c
> index ea0c35794bf9..d9ce810fee9e 100644
> --- a/fs/dax.c
> +++ b/fs/dax.c
> @@ -1756,6 +1756,9 @@ dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
> loff_t done = 0;
> int ret;
>
> + if (WARN_ON_ONCE(iocb->ki_flags & IOCB_ATOMIC))
> + return -EIO;
> +
> if (!iomi.len)
> return 0;
>
> --
> 2.43.5
>
>
Powered by blists - more mailing lists