Page MenuHomeFreeBSD

mbuf: Don't force all M_EXTPG mbufs to be read-only
ClosedPublic

Authored by jhb on Sep 25 2024, 3:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 10 2024, 7:51 PM
Unknown Object (File)
Dec 9 2024, 6:29 AM
Unknown Object (File)
Nov 21 2024, 5:11 PM
Unknown Object (File)
Nov 18 2024, 12:31 AM
Unknown Object (File)
Nov 16 2024, 11:52 AM
Unknown Object (File)
Nov 12 2024, 5:47 PM
Unknown Object (File)
Nov 7 2024, 4:52 PM
Unknown Object (File)
Nov 3 2024, 12:35 PM
Subscribers

Details

Summary

Some M_EXTPG mbufs are read-only (e.g. those backing sendfile
requests), but others are not. Add a flags argument to
mb_alloc_ext_pgs that can be used to set M_RDONLY when needed rather
than setting it unconditionally. Update mb_unmapped_to_ext to
preserve M_RDONLY from the unmapped mbuf.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable