Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168943697
D56492.id177347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56492.id177347.diff
View Options
diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c
--- a/sys/dev/virtio/p9fs/virtio_p9fs.c
+++ b/sys/dev/virtio/p9fs/virtio_p9fs.c
@@ -471,14 +471,12 @@
switch (type) {
case MOD_LOAD:
if (loaded++ == 0) {
- p9_init_zones();
p9_register_trans(&vt9p_trans);
}
break;
case MOD_UNLOAD:
if (--loaded == 0) {
p9_unregister_trans(&vt9p_trans);
- p9_destroy_zones();
}
break;
case MOD_SHUTDOWN:
@@ -487,6 +485,7 @@
error = EOPNOTSUPP;
break;
}
+
return (error);
}
diff --git a/sys/fs/p9fs/p9fs_vfsops.c b/sys/fs/p9fs/p9fs_vfsops.c
--- a/sys/fs/p9fs/p9fs_vfsops.c
+++ b/sys/fs/p9fs/p9fs_vfsops.c
@@ -119,6 +119,8 @@
p9fs_io_buffer_zone = uma_zcreate("p9fs io_buffer zone",
P9FS_MTU, NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+ p9_init_zones();
+
return (0);
}
@@ -127,6 +129,8 @@
p9fs_uninit(struct vfsconf *vfsp)
{
+ p9_destroy_zones();
+
uma_zdestroy(p9fs_node_zone);
uma_zdestroy(p9fs_io_buffer_zone);
uma_zdestroy(p9fs_getattr_zone);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 31, 9:26 PM (16 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37723099
Default Alt Text
D56492.id177347.diff (1 KB)
Attached To
Mode
D56492: p9fs: Move UMA zone initialization to VFS module lifecycle
Attached
Detach File
Event Timeline
Log In to Comment