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)
Sun, Oct 4, 1:58 PM
Unknown Object (File)
Sun, Oct 4, 10:01 AM
Unknown Object (File)
Thu, Oct 1, 5:11 PM
Unknown Object (File)
Mon, Sep 28, 12:21 AM
Unknown Object (File)
Tue, Sep 15, 10:19 AM
Unknown Object (File)
Sat, Sep 12, 1:52 AM
Unknown Object (File)
Thu, Sep 10, 4:01 PM
Unknown Object (File)
Mon, Sep 7, 7:58 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