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
Unknown Object (File)
Sat, Jun 6, 2:39 AM
Unknown Object (File)
Thu, May 28, 4:49 AM
Unknown Object (File)
Wed, May 27, 8:24 AM
Unknown Object (File)
Mon, May 25, 8:40 AM
Unknown Object (File)
Mon, May 25, 8:31 AM
Unknown Object (File)
Mon, May 18, 7:22 AM
Unknown Object (File)
Mon, May 18, 7:18 AM
Unknown Object (File)
May 15 2026, 3:25 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