linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Optional FUSE flush-on-close
@ 2021-10-19 16:11 Amir Goldstein
  2021-10-21 18:36 ` Miklos Szeredi
  0 siblings, 1 reply; 3+ messages in thread
From: Amir Goldstein @ 2021-10-19 16:11 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-fsdevel

Miklos,

We have a use case where fuse_sync_writes() is disruptive
to the workload.

Some applications, which are not under our control do
open(O_RDONLY);fstat();close() and are made to block waiting on writes
that they are not responsible for.

Looking at other network filesystems, cifs and nfs only flush on close
for FMODE_WRITE files.
Some older SMB flavors (smb1, smb2) do also flush on RDONLY files.

In particular, our FUSE filesystem does not even implement FLUSH
and it has writeback caching disabled, so the value of flush on close
is even more questionable.

Would you be willing to consider a patch that makes flush-on-close
behavior optional for RDONLY files?
If so, should I make this option available only when filesystem
does not implement FLUSH or independent?
Should I make an option to completely disable flush-on-close
(i.e. like most disk filesystems)?

Thanks,
Amir.

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

end of thread, other threads:[~2021-10-22  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 16:11 [RFC] Optional FUSE flush-on-close Amir Goldstein
2021-10-21 18:36 ` Miklos Szeredi
2021-10-22  7:34   ` Amir Goldstein

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