Bug 238312 - [FUSEFS] writeback mode actually writes through
Summary: [FUSEFS] writeback mode actually writes through
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Alan Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-03 17:22 UTC by Alan Somers
Modified: 2019-07-04 11:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2019-06-03 17:22:38 UTC
fusefs has three sysctl-selectable cache modes: uncached, writethrough, and writeback.  Writeback mode is supposed to be the highest performance.  It's supposed to cache dirty data in the kernel and flush it occasionally, like UFS does.  However, it's never actually worked that way.  Instead, it writes through immediately.  Fixing this would probably be as simple as replacing the bwrite calls in fuse_write_biobackend with bdwrite.  But doing it correctly will require a little bit more work.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2019-06-17 23:30:03 UTC
Fixed by r349038.