HomeFreeBSD

LinuxKPI: allocate current before taking shrinkers lock

Description

LinuxKPI: allocate current before taking shrinkers lock

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)

Reviewed by: hselasky, manu
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32066

Details

Provenance
wulfAuthored on Sep 29 2021, 8:12 PM
Reviewer
hselasky
Differential Revision
D32066: LinuxKPI: allocate current before taking shrinkers lock
Parents
rGb58c916f115d: LinuxKPI: implement _IOC_TYPE and _IOC_NR macros in linux/ioctl.h
Branches
Unknown
Tags
Unknown