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
F173999430: D56492.id177347.diff
Tue, Sep 29, 9:17 PM
F173955028: D56492.diff
Tue, Sep 29, 3:20 PM
Unknown Object (File)
Mon, Sep 28, 4:02 PM
Unknown Object (File)
Thu, Sep 10, 8:52 AM
Unknown Object (File)
Tue, Sep 8, 5:39 PM
Unknown Object (File)
Tue, Sep 8, 1:03 AM
Unknown Object (File)
Sun, Sep 6, 4:11 PM
Unknown Object (File)
Sun, Sep 6, 8:23 AM
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