]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make sure all tasklets are drained before unloading the LinuxKPI.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 21 May 2021 06:52:59 +0000 (08:52 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Jun 2021 11:23:19 +0000 (13:23 +0200)
commit407b687dfef6bf20623726a71127b63f4fb20615
treeac9ac633952346896eaafe46683ea3380de4a247
parent623d96f4afb60eb0d6fcf5ba738d9880a3b10ca0
Make sure all tasklets are drained before unloading the LinuxKPI.
Else use-after-free may happen.

This change also partially cherry picks support for the
taskqgroup_drain_all() function.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 209d4919c5270fe9e3c1d809cf91355d222dc2f3)
sys/compat/linuxkpi/common/src/linux_tasklet.c
sys/kern/subr_gtaskqueue.c
sys/sys/gtaskqueue.h