From: Miklos Szeredi <miklos@szeredi.hu>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Bernd Schubert <bschubert@ddn.com>,
linux-fsdevel@vger.kernel.org, dsingh@ddn.com
Subject: Re: [PATCH v2 5/5] fuse: introduce inode io modes
Date: Tue, 6 Feb 2024 13:53:14 +0100 [thread overview]
Message-ID: <CAJfpegvPCkj-r1m1ndSzNzT2i_oZQUM2PARDTov0vwhqC5JrvA@mail.gmail.com> (raw)
In-Reply-To: <CAOQ4uxjnrZngNcthc9M5U_SBM+267LMEkYxtoR6uZ8J8YNRvng@mail.gmail.com>
On Tue, 6 Feb 2024 at 13:39, Amir Goldstein <amir73il@gmail.com> wrote:
> I have played with this rebranding of
> FOPEN_CACHE_IO => FOPEN_NO_PARALLEL_DIO_WRITES
>
> The meaning of the rebranded flag is:
> Prevent parallel dio on inode for as long as this file is kept open.
>
> The io modes code sets this flag implicitly on the first shared mmap.
>
> Let me know if this makes the external flag easier to swallow.
> Of course I can make this flag internal and not and FOPEN_ flag
> at all, but IMO, the code is easier to understand when the type of
> iocachectl refcount held by any file is specified by its FOPEN_ flags.
If there's no clear use case that would benefit from having this flag
on the userspace interface, then I'd recommend not to export it for
now.
I understand the need for clarifying the various states that the
kernel can be, but I think that's a bigger project involving e.g. data
and metadata cache validity, where the current rules are pretty
convoluted.
So for now I'd just stick with the implicit state change by mmap.
BTW, I started looking at the fuse-backing-fd branch and really hope
we can get this into shape for the next merge window.
Thanks,
Miklos
next prev parent reply other threads:[~2024-02-06 12:53 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 23:08 [PATCH v2 0/5] fuse: inode IO modes and mmap Bernd Schubert
2024-01-31 23:08 ` [PATCH v2 1/5] fuse: Fix VM_MAYSHARE and direct_io_allow_mmap Bernd Schubert
2024-02-01 8:45 ` Miklos Szeredi
2024-02-01 14:36 ` Bernd Schubert
2024-02-01 14:52 ` Miklos Szeredi
2024-02-01 15:39 ` Bernd Schubert
2024-02-01 15:43 ` Miklos Szeredi
2024-02-01 15:48 ` Amir Goldstein
2024-02-01 16:16 ` Bernd Schubert
2024-02-02 14:47 ` Bernd Schubert
2024-01-31 23:08 ` [PATCH v2 2/5] fuse: Create helper function if DIO write needs exclusive lock Bernd Schubert
2024-02-06 9:20 ` Jingbo Xu
2024-02-07 13:38 ` Bernd Schubert
2024-02-07 13:44 ` Jingbo Xu
2024-02-07 14:13 ` Bernd Schubert
2024-02-08 0:04 ` Jingbo Xu
2024-01-31 23:08 ` [PATCH v2 3/5] fuse: Add fuse_dio_lock/unlock helper functions Bernd Schubert
2024-01-31 23:08 ` [PATCH v2 4/5] fuse: prepare for failing open response Bernd Schubert
2024-02-01 9:23 ` Miklos Szeredi
2024-02-01 10:16 ` Amir Goldstein
2024-02-01 10:28 ` Miklos Szeredi
2024-02-01 10:41 ` Amir Goldstein
2024-02-01 10:51 ` Miklos Szeredi
2024-02-01 16:46 ` Amir Goldstein
2024-02-02 12:03 ` Amir Goldstein
2024-02-02 15:49 ` Miklos Szeredi
2024-02-02 15:55 ` Miklos Szeredi
2024-02-02 16:07 ` Amir Goldstein
2024-01-31 23:08 ` [PATCH v2 5/5] fuse: introduce inode io modes Bernd Schubert
2024-02-01 14:47 ` Miklos Szeredi
2024-02-01 16:33 ` Amir Goldstein
2024-02-01 17:53 ` Bernd Schubert
2024-02-02 19:40 ` Amir Goldstein
2024-02-06 12:39 ` Amir Goldstein
2024-02-06 12:53 ` Miklos Szeredi [this message]
2024-02-06 13:07 ` Amir Goldstein
2024-02-01 10:30 ` [PATCH v2 0/5] fuse: inode IO modes and mmap Amir Goldstein
2024-02-01 14:30 ` Bernd Schubert
2024-02-01 15:56 ` Amir Goldstein
2024-02-01 16:01 ` Bernd Schubert
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=CAJfpegvPCkj-r1m1ndSzNzT2i_oZQUM2PARDTov0vwhqC5JrvA@mail.gmail.com \
--to=miklos@szeredi.hu \
--cc=amir73il@gmail.com \
--cc=bschubert@ddn.com \
--cc=dsingh@ddn.com \
--cc=linux-fsdevel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).