Page MenuHomeFreeBSD

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

Authored by dumbbell on Fri, Jan 31, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 6, 12:21 PM
Unknown Object (File)
Thu, Feb 6, 2:45 AM
Unknown Object (File)
Wed, Feb 5, 9:08 PM
Unknown Object (File)
Tue, Feb 4, 12:56 AM
Unknown Object (File)
Mon, Feb 3, 7:07 PM
Unknown Object (File)
Mon, Feb 3, 6:37 PM
Unknown Object (File)
Mon, Feb 3, 5:20 PM
Unknown Object (File)
Mon, Feb 3, 3:42 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

Lint
Lint Skipped
Unit
Tests Skipped