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
F152935612: D48762.id150258.diff
Sat, Apr 18, 4:34 AM
F152903629: D48762.id150258.diff
Fri, Apr 17, 10:22 PM
F152835992: D48762.diff
Fri, Apr 17, 10:20 AM
Unknown Object (File)
Wed, Apr 15, 2:09 AM
Unknown Object (File)
Wed, Apr 15, 1:26 AM
Unknown Object (File)
Mon, Apr 13, 9:48 PM
Unknown Object (File)
Sun, Apr 12, 1:58 AM
Unknown Object (File)
Thu, Apr 9, 11:54 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