[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250724081215.3943871-2-john.g.garry@oracle.com>
Date: Thu, 24 Jul 2025 08:12:13 +0000
From: John Garry <john.g.garry@...cle.com>
To: djwong@...nel.org, hch@....de, cem@...nel.org, dan.j.williams@...el.com,
willy@...radead.org, jack@...e.cz, brauner@...nel.org,
viro@...iv.linux.org.uk
Cc: linux-xfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
nvdimm@...ts.linux.dev, linux-kernel@...r.kernel.org,
John Garry <john.g.garry@...cle.com>
Subject: [PATCH v3 1/3] fs/dax: Reject IOCB_ATOMIC in dax_iomap_rw()
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>
---
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