Page MenuHomeFreeBSD

LinuxKPI: allocate current before taking shrinkers lock
ClosedPublic

Authored by wulf on Sep 23 2021, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 10:35 AM
Unknown Object (File)
Wed, May 13, 6:26 AM
Unknown Object (File)
Mon, May 4, 3:00 PM
Unknown Object (File)
Apr 15 2026, 2:19 PM
Unknown Object (File)
Mar 28 2026, 6:26 AM
Unknown Object (File)
Mar 27 2026, 7:56 AM
Unknown Object (File)
Mar 26 2026, 4:42 PM
Unknown Object (File)
Feb 17 2026, 4:46 PM

Details

Summary

This fixes following warnings when shrinkers are invoked first time:

uma_zalloc_debug: zone "lkpicurr" with the following non-sleepable
locks held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

uma_zalloc_debug: zone "lkpimm" with the following non-sleepable locks
held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

Test Plan

Run drm-kmod in low-memory conditions

Diff Detail

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