Page MenuHomeFreeBSD

linuxkpi: Don't destroy the mutex in `xa_destroy()`
ClosedPublic

Authored by dumbbell on Jan 31 2025, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 9 2025, 7:31 PM
Unknown Object (File)
Sep 9 2025, 11:56 AM
Unknown Object (File)
Aug 12 2025, 6:47 PM
Unknown Object (File)
Aug 9 2025, 9:04 AM
Unknown Object (File)
Aug 6 2025, 10:14 PM
Unknown Object (File)
Jul 6 2025, 9:15 AM
Unknown Object (File)
Jul 5 2025, 1:29 AM
Unknown Object (File)
Jul 2 2025, 4:35 PM
Subscribers

Details

Summary

Why

The mutex initialized in xa_init_flags() is not destroyed here on purpose. The reason is that on Linux, the xarray remains usable after a call to xa_destroy(). For instance the i915 DRM driver relies on that during the initialixation of its GuC. Basically, xa_destroy() "resets" the structure to zero but doesn't really destroy it.

This is part of the update of DRM drivers to Linux 6.7.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable