Page MenuHomeFreeBSD

p9fs: Move UMA zone initialization to VFS module lifecycle
AcceptedPublic

Authored by arichardson on Sat, Apr 18, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 22, 2:17 PM
Unknown Object (File)
Tue, Apr 21, 10:27 PM
Unknown Object (File)
Tue, Apr 21, 7:26 PM
Unknown Object (File)
Mon, Apr 20, 2:22 AM
Unknown Object (File)
Sun, Apr 19, 5:16 PM
Unknown Object (File)
Sat, Apr 18, 11:41 AM
Subscribers

Details

Reviewers
kib
markj
Group Reviewers
cheri
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 Passed
Unit
No Test Coverage
Build Status
Buildable 72313
Build 69196: arc lint + arc unit