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)
Mon, Apr 20, 8:31 PM
Unknown Object (File)
Mon, Apr 20, 8:31 PM
Unknown Object (File)
Sun, Apr 19, 8:30 PM
Unknown Object (File)
Fri, Apr 17, 3:41 AM
Unknown Object (File)
Sat, Apr 11, 4:20 PM
Unknown Object (File)
Sat, Apr 11, 1:53 PM
Unknown Object (File)
Sat, Apr 11, 1:31 PM
Unknown Object (File)
Wed, Apr 8, 4:07 AM
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