On Tue, Aug 29, 2023 at 01:34:22PM -0400, James Zhu wrote:[JZ] In case, the future, INIT adds something, need DESTROY to free completely.
Why do you say that?[JZ] In practice, adding destroy here will be better.We could, if we expect the xarray to potentially not be empty.@@ -1067,7 +1055,7 @@ static void drm_core_exit(void)[JZ] Should we call xa_destroy instead here?
unregister_chrdev(DRM_MAJOR, "drm");
debugfs_remove(drm_debugfs_root);
drm_sysfs_destroy();
- idr_destroy(&drm_minors_idr);
From what I understand - all minors should be released at this point.