[RFC] FUSE: add another flag to support shared mmap in FOPEN_DIRECT_IO mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "fuse-devel@xxxxxxxxxxxxxxxxxxxxx" <fuse-devel@xxxxxxxxxxxxxxxxxxxxx>, miklos@xxxxxxxxxx
- Subject: [RFC] FUSE: add another flag to support shared mmap in FOPEN_DIRECT_IO mode
- From: Hao Xu <hao.xu@xxxxxxxxx>
- Date: Tue, 2 May 2023 15:28:50 +0800
- Cc: Antonio SJ Musumeci <trapexit@xxxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, Bernd Schubert <bernd.schubert@xxxxxxxxxxx>
Hi all,
From discussion with Bernd, I get that FOPEN_DIRECT_IO is designed for
those user cases where users want strong coherency like network
filesystems, where one server serves multiple remote clients. And thus
shared mmap is disabled since local page cache existence breaks this
kind of coherency.
But here our use case is one virtiofs daemon serve one guest vm, We use
FOPEN_DIRECT_IO to reduce memory footprint not for coherency. So we
expect shared mmap works in this case. Here I suggest/am implementing
adding another flag to indicate this kind of cases----use
FOPEN_DIRECT_IO not for coherency----so that shared mmap works.
Thanks,
Hao
[Index of Archives]
[Linux Ext4 Filesystem]
[Union Filesystem]
[Filesystem Testing]
[Ceph Users]
[Ecryptfs]
[NTFS 3]
[AutoFS]
[Kernel Newbies]
[Share Photos]
[Security]
[Netfilter]
[Bugtraq]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux Cachefs]
[Reiser Filesystem]
[Linux RAID]
[NTFS 3]
[Samba]
[Device Mapper]
[CEPH Development]