From: "Lv Fei(吕飞)" <feilv@asrmicro.com>
To: Amir Goldstein <amir73il@gmail.com>, Miklos Szeredi <miklos@szeredi.hu>
Cc: "linux-unionfs@vger.kernel.org" <linux-unionfs@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Xu Lianghu(徐良虎)" <lianghuxu@asrmicro.com>
Subject: 答复: [PATCH V2] ovl: fsync after metadata copy-up via mount option "fsync=strict"
Date: Fri, 30 Aug 2024 11:52:11 +0000 [thread overview]
Message-ID: <4ec356a473294dd3aab94a66c528eb2e@exch01.asrmicro.com> (raw)
In-Reply-To: <CAOQ4uxjkVcY7z8JCshmsCfn1=JUcxDG8vyJQ+ssdeBmGrZ=eKg@mail.gmail.com>
> On Thu, Aug 29, 2024 at 6:23 PM Amir Goldstein <amir73il@gmail.com> wrote:
> >
> > On Thu, Aug 29, 2024 at 2:51 PM Miklos Szeredi <miklos@szeredi.hu> wrote:
> > >
> > > On Thu, 29 Aug 2024 at 12:29, Amir Goldstein <amir73il@gmail.com> wrote:
> > >
> > > > But maybe we can ignore crash safety of metacopy on ubifs, because
> > > > 1. the ubifs users may not be using this feature 2. ubifs may be
> > > > nice and takes care of ordering O_TMPFILE
> > > > metadata updates before exposing the link
> > > >
> > > > Then we can do the following:
> > > > IF (metacopy_enabled)
> > > > fsync only in ovl_copy_up_file() ELSE
> > > > fsync only in ovl_copy_up_metadata()
> > > >
> > > > Let me know what you think.
> > >
> > > Sounds like a good compromise.
> > >
> >
> > Fei,
> >
> > Could you please test the attached patch and confirm that your use
> > case does not depend on metacopy enabled?
> >
> > In any case, I am holding on to your patch in case someone reports a
> > performance regression with this unconditional fsync approach.
> >
>
> Well, it's a good thing that I took Miklois' advice to make the fsync option implicit, because > the original patch had 2 bugs detected by fstest:
> 1. missing O_LARGEFILE
> 2. trying to fsync special files
>
> Please see uptodate patch at:
> https://github.com/amir73il/linux/commits/ovl-fsync/
>
> If there are no complaints, I will queue this up for v6.12.
> Fei, please provide your Tested-by.
We do not enable metacopy.
Tested this patch and it also solved our issue.
Thanks,
Fei
next prev parent reply other threads:[~2024-08-30 11:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 10:14 [PATCH V2] ovl: fsync after metadata copy-up via mount option "fsync=strict" Fei Lv
2024-07-22 13:56 ` Amir Goldstein
2024-08-23 9:51 ` Amir Goldstein
2024-08-23 11:42 ` Amir Goldstein
2024-08-26 6:56 ` 答复: " Lv Fei(吕飞)
2024-08-26 13:03 ` Amir Goldstein
2024-08-26 15:59 ` Miklos Szeredi
2024-08-27 8:46 ` Amir Goldstein
2024-08-29 10:29 ` Amir Goldstein
2024-08-29 12:51 ` Miklos Szeredi
2024-08-29 16:23 ` Amir Goldstein
2024-08-30 9:26 ` Amir Goldstein
2024-08-30 11:52 ` Lv Fei(吕飞) [this message]
2024-08-30 12:23 ` Amir Goldstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ec356a473294dd3aab94a66c528eb2e@exch01.asrmicro.com \
--to=feilv@asrmicro.com \
--cc=amir73il@gmail.com \
--cc=lianghuxu@asrmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox