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)
Tue, Sep 8, 5:38 PM
Unknown Object (File)
Tue, Sep 8, 5:37 PM
Unknown Object (File)
Tue, Sep 8, 12:37 PM
Unknown Object (File)
Mon, Sep 7, 8:59 PM
Unknown Object (File)
Mon, Sep 7, 6:51 PM
Unknown Object (File)
Mon, Sep 7, 3:17 AM
Unknown Object (File)
Sun, Sep 6, 8:45 PM
Unknown Object (File)
Sun, Sep 6, 3:39 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41648
Build 38537: arc lint + arc unit