Page MenuHomeFreeBSD

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

Authored by jhb on Wed, Sep 25, 3:13 PM.
Tags
None
Referenced Files
F96622916: D46783.diff
Wed, Sep 25, 6:56 PM
F96595888: D46783.id143714.diff
Wed, Sep 25, 4:17 PM
F96595716: D46783.id.diff
Wed, Sep 25, 4:16 PM
F96593554: D46783.diff
Wed, Sep 25, 4:05 PM
Subscribers

Details

Reviewers
gallatin
kp
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59593
Build 56480: arc lint + arc unit