Page MenuHomeFreeBSD

p9fs: Move UMA zone initialization to VFS module lifecycle
ClosedPublic

Authored by arichardson on Apr 18 2026, 5:56 AM.
Tags
None
Referenced Files
F170203015: D56492.id177347.diff
Thu, Sep 3, 8:52 PM
Unknown Object (File)
Wed, Sep 2, 10:12 AM
Unknown Object (File)
Wed, Sep 2, 8:36 AM
Unknown Object (File)
Wed, Sep 2, 6:10 AM
Unknown Object (File)
Wed, Sep 2, 5:35 AM
Unknown Object (File)
Wed, Sep 2, 1:09 AM
Unknown Object (File)
Tue, Sep 1, 11:12 PM
Unknown Object (File)
Tue, Sep 1, 9:06 PM
Subscribers

Details

Summary

Previously, the UMA zones required for 9P requests (p9fs_buf_zone,
p9fs_req_zone, etc.) were initialized and destroyed in the
virtio_p9fs transport module. This caused issues when unloading
the core p9fs module.

This change moves p9_init_zones() and p9_destroy_zones() into
p9fs_init() and p9fs_uninit() inside p9fs_vfsops.c so that they
are correctly bound to the VFS filesystem module lifecycle via
vfs_modevent, aligning p9fs with standard FreeBSD VFS semantics.

Found while fixing https://github.com/CTSRD-CHERI/cheribsd/issues/2617.

Diff Detail

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