Page MenuHomeFreeBSD

p9fs: Move UMA zone initialization to VFS module lifecycle
ClosedPublic

Authored by arichardson on Sat, Apr 18, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 9, 4:34 PM
Unknown Object (File)
Sat, May 9, 4:26 PM
Unknown Object (File)
Thu, May 7, 8:03 AM
Unknown Object (File)
Thu, May 7, 2:56 AM
Unknown Object (File)
Tue, May 5, 1:14 AM
Unknown Object (File)
Sun, May 3, 6:58 AM
Unknown Object (File)
Wed, Apr 29, 8:15 PM
Unknown Object (File)
Wed, Apr 29, 12: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