* [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
@ 2025-10-09 5:41 Seong-Gwang Heo
2025-10-09 9:56 ` Miklos Szeredi
2025-10-10 12:03 ` Christian Brauner
0 siblings, 2 replies; 4+ messages in thread
From: Seong-Gwang Heo @ 2025-10-09 5:41 UTC (permalink / raw)
To: miklos, amir73il; +Cc: linux-unionfs, Seong-Gwang Heo
The backing_file_write_iter() function, which is called
immediately after this code, already contains identical
logic to clear the IOCB_DIO_CALLER_COMP flag along with
the same explanatory comment. There is no need to duplicate
this operation in the overlayfs code.
Signed-off-by: Seong-Gwang Heo <heo@mykernel.net>
---
fs/overlayfs/file.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index f5b8877d5fe2..31a98f10fc4b 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
@@ -369,11 +369,6 @@ static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter)
if (!ovl_should_sync(OVL_FS(inode->i_sb)))
ifl &= ~(IOCB_DSYNC | IOCB_SYNC);
- /*
- * Overlayfs doesn't support deferred completions, don't copy
- * this property in case it is set by the issuer.
- */
- ifl &= ~IOCB_DIO_CALLER_COMP;
ret = backing_file_write_iter(realfile, iter, iocb, ifl, &ctx);
out_unlock:
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
2025-10-09 5:41 [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing Seong-Gwang Heo
@ 2025-10-09 9:56 ` Miklos Szeredi
2025-10-09 11:59 ` Amir Goldstein
2025-10-10 12:03 ` Christian Brauner
1 sibling, 1 reply; 4+ messages in thread
From: Miklos Szeredi @ 2025-10-09 9:56 UTC (permalink / raw)
To: Seong-Gwang Heo; +Cc: amir73il, linux-unionfs
On Thu, 9 Oct 2025 at 07:42, Seong-Gwang Heo <heo@mykernel.net> wrote:
>
> The backing_file_write_iter() function, which is called
> immediately after this code, already contains identical
> logic to clear the IOCB_DIO_CALLER_COMP flag along with
> the same explanatory comment. There is no need to duplicate
> this operation in the overlayfs code.
>
> Signed-off-by: Seong-Gwang Heo <heo@mykernel.net>
Fixes: a6293b3e285c ("fs: factor out backing_file_{read,write}_iter() helpers")
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Thanks,
Miklos
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
2025-10-09 9:56 ` Miklos Szeredi
@ 2025-10-09 11:59 ` Amir Goldstein
0 siblings, 0 replies; 4+ messages in thread
From: Amir Goldstein @ 2025-10-09 11:59 UTC (permalink / raw)
To: Christian Brauner; +Cc: Seong-Gwang Heo, linux-unionfs, Miklos Szeredi
On Thu, Oct 9, 2025 at 11:56 AM Miklos Szeredi <miklos@szeredi.hu> wrote:
>
> On Thu, 9 Oct 2025 at 07:42, Seong-Gwang Heo <heo@mykernel.net> wrote:
> >
> > The backing_file_write_iter() function, which is called
> > immediately after this code, already contains identical
> > logic to clear the IOCB_DIO_CALLER_COMP flag along with
> > the same explanatory comment. There is no need to duplicate
> > this operation in the overlayfs code.
> >
> > Signed-off-by: Seong-Gwang Heo <heo@mykernel.net>
>
> Fixes: a6293b3e285c ("fs: factor out backing_file_{read,write}_iter() helpers")
> Acked-by: Miklos Szeredi <mszeredi@redhat.com>
>
Thanks Seong-Gwang!
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Christian,
Could you pick up this fix for the next vfs fixes PR?
Thanks,
Amir.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
2025-10-09 5:41 [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing Seong-Gwang Heo
2025-10-09 9:56 ` Miklos Szeredi
@ 2025-10-10 12:03 ` Christian Brauner
1 sibling, 0 replies; 4+ messages in thread
From: Christian Brauner @ 2025-10-10 12:03 UTC (permalink / raw)
To: miklos, amir73il, Seong-Gwang Heo; +Cc: Christian Brauner, linux-unionfs
On Thu, 09 Oct 2025 13:41:48 +0800, Seong-Gwang Heo wrote:
> The backing_file_write_iter() function, which is called
> immediately after this code, already contains identical
> logic to clear the IOCB_DIO_CALLER_COMP flag along with
> the same explanatory comment. There is no need to duplicate
> this operation in the overlayfs code.
>
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
https://git.kernel.org/vfs/vfs/c/7933a585d70e
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-10 12:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 5:41 [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing Seong-Gwang Heo
2025-10-09 9:56 ` Miklos Szeredi
2025-10-09 11:59 ` Amir Goldstein
2025-10-10 12:03 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).