Skip to contentSkip to conversation

nfs_need_sync_write

DISCUSSION Christoph Hellwig 1 participant 1 message Aug 10, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This helper returns true for the IS_SYNC or O_SYNC conditions which are already handled in generic code using generic_write_sync, leading to a double data writeout in both the write and splice_write path. Even worse nfs is using vfs_fsync instead of the range variant used by the generic code, making O_SYNC writes on NFS much heavier than they need to be.