linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fuse: Rename DIRECT_IO_{RELAX -> ALLOW_MMAP}
@ 2023-09-20  2:39 Tyler Fanelli
  2023-09-20  2:40 ` [PATCH 1/2] fs/fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP Tyler Fanelli
                   ` (3 more replies)
  0 siblings, 4 replies; 48+ messages in thread
From: Tyler Fanelli @ 2023-09-20  2:39 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: mszeredi, gmaglione, hreitz, Tyler Fanelli

At the moment, FUSE_INIT's DIRECT_IO_RELAX flag only serves the purpose
of allowing shared mmap of files opened/created with DIRECT_IO enabled.
However, it leaves open the possibility of further relaxing the
DIRECT_IO restrictions (and in-effect, the cache coherency guarantees of
DIRECT_IO) in the future.

The DIRECT_IO_ALLOW_MMAP flag leaves no ambiguity of its purpose. It
only serves to allow shared mmap of DIRECT_IO files, while still
bypassing the cache on regular reads and writes. The shared mmap is the
only loosening of the cache policy that can take place with the flag.
This removes some ambiguity and introduces a more stable flag to be used
in FUSE_INIT. Furthermore, we can document that to allow shared mmap'ing
of DIRECT_IO files, a user must enable DIRECT_IO_ALLOW_MMAP.

Tyler Fanelli (2):
  fs/fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP
  docs/fuse-io: Document the usage of DIRECT_IO_ALLOW_MMAP

 Documentation/filesystems/fuse-io.rst | 3 ++-
 fs/fuse/file.c                        | 6 +++---
 fs/fuse/fuse_i.h                      | 4 ++--
 fs/fuse/inode.c                       | 6 +++---
 include/uapi/linux/fuse.h             | 7 +++----
 5 files changed, 13 insertions(+), 13 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2023-12-21 15:08 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-20  2:39 [PATCH 0/2] fuse: Rename DIRECT_IO_{RELAX -> ALLOW_MMAP} Tyler Fanelli
2023-09-20  2:40 ` [PATCH 1/2] fs/fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP Tyler Fanelli
2023-09-20  8:31   ` Hanna Czenczek
2023-09-20  9:04     ` Bernd Schubert
2023-09-20  2:40 ` [PATCH 2/2] docs/fuse-io: Document the usage of DIRECT_IO_ALLOW_MMAP Tyler Fanelli
2023-09-20  8:15 ` [PATCH 0/2] fuse: Rename DIRECT_IO_{RELAX -> ALLOW_MMAP} Miklos Szeredi
2023-11-06 14:08   ` Bernd Schubert
2023-11-08 18:19     ` Tyler Fanelli
2023-12-02 15:06     ` Amir Goldstein
2023-12-03 11:20       ` Amir Goldstein
2023-12-03 23:00         ` Bernd Schubert
2023-12-04  6:50           ` Amir Goldstein
2023-12-04  9:27             ` Miklos Szeredi
2023-12-04 10:04               ` Bernd Schubert
2023-12-04 23:42                 ` Bernd Schubert
2023-12-05  7:00                   ` Amir Goldstein
2023-12-05 14:01                     ` Bernd Schubert
2023-12-05 19:18                       ` Amir Goldstein
2023-12-05 23:56                       ` Bernd Schubert
2023-12-06  8:25                         ` Amir Goldstein
2023-12-06 23:28                           ` Bernd Schubert
2023-12-07  7:39                             ` Amir Goldstein
2023-12-07  9:12                               ` Bernd Schubert
2023-12-07 18:37                               ` Bernd Schubert
2023-12-08  8:39                                 ` Amir Goldstein
2023-12-08 19:49                                   ` Bernd Schubert
2023-12-08 20:46                                     ` Amir Goldstein
2023-12-08 22:38                                       ` Bernd Schubert
2023-12-12 18:30                                         ` Amir Goldstein
2023-12-12 22:07                                           ` Bernd Schubert
     [not found]                                             ` <CAOQ4uxh=aBFEiBVBErEA_d+mWcTOysLgbgWVztSzL+D2BvMLdA@mail.gmail.com>
2023-12-13 10:11                                               ` Bernd Schubert
2023-12-13 11:23                                                 ` Amir Goldstein
2023-12-13 13:03                                                   ` Bernd Schubert
2023-12-13 14:09                                                     ` Bernd Schubert
2023-12-14 11:50                                                       ` Bernd Schubert
2023-12-19  0:03                                           ` Bernd Schubert
2023-12-19 13:01                                             ` Amir Goldstein
2023-12-19 20:47                                               ` Bernd Schubert
2023-12-20  4:18                                                 ` Amir Goldstein
2023-12-20  9:00                                                   ` Bernd Schubert
2023-12-20 12:26                                                     ` Bernd Schubert
2023-12-20 22:13                                                       ` Bernd Schubert
2023-12-21  9:18                                                         ` Amir Goldstein
2023-12-21 10:17                                                           ` Bernd Schubert
2023-12-21 11:14                                                             ` Amir Goldstein
2023-12-21 14:36                                                               ` Bernd Schubert
2023-12-21 15:08                                                               ` Bernd Schubert
2023-09-20  8:42 ` Bernd Schubert

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).