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
F170845332: D46783.id145791.diff
Mon, Sep 7, 12:15 AM
Unknown Object (File)
Sun, Sep 6, 3:50 PM
Unknown Object (File)
Sat, Sep 5, 12:51 PM
Unknown Object (File)
Sat, Sep 5, 11:27 AM
Unknown Object (File)
Sat, Sep 5, 4:31 AM
Unknown Object (File)
Fri, Sep 4, 1:16 PM
Unknown Object (File)
Thu, Sep 3, 12:20 PM
Unknown Object (File)
Wed, Sep 2, 1:29 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