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)
Sat, Jul 4, 4:39 PM
Unknown Object (File)
Sat, Jul 4, 1:22 PM
Unknown Object (File)
Fri, Jul 3, 9:21 PM
Unknown Object (File)
Fri, Jul 3, 4:10 AM
Unknown Object (File)
Thu, Jul 2, 11:00 PM
Unknown Object (File)
Tue, Jun 30, 10:08 PM
Unknown Object (File)
Fri, Jun 26, 7:36 PM
Unknown Object (File)
Thu, Jun 25, 1:28 AM

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