Page MenuHomeFreeBSD

Fix VOP_PUTPAGES(9) in regards to the use of VM_PAGER_CLUSTER_OK
ClosedPublic

Authored by khng on Jun 19 2019, 8:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 7:09 PM
Unknown Object (File)
Jan 16 2024, 8:20 AM
Unknown Object (File)
Jan 13 2024, 11:28 AM
Unknown Object (File)
Dec 31 2023, 6:18 PM
Unknown Object (File)
Dec 28 2023, 8:19 AM
Unknown Object (File)
Sep 22 2023, 10:18 AM
Unknown Object (File)
Sep 14 2023, 4:14 AM
Unknown Object (File)
Sep 10 2023, 6:32 AM
Subscribers

Details

Summary

By reading the implementation of vnode_pager_putpages_ioflags() and
vnode_pager_generic_putpages(), if VM_PAGER_CLUSTER_OK is not set write
may be performed asynchronously.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Doing asynchronous writes prevents clustering. The correct fix is to say:

If
.Dv VM_PAGER_CLUSTER_OK
is set, writes may be delayed so that related writes
can be coalesced for efficiency, e.g.,
This revision now requires changes to proceed.Jun 27 2019, 9:09 PM
  • Updated according to @mckusick 's suggestion
This revision is now accepted and ready to land.Jun 29 2019, 2:49 AM

I'll take care of this and also bump the .Dd field.