]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
With INVARIANTS panic immediately if M_WAITOK is requested in a
authorGleb Smirnoff <glebius@FreeBSD.org>
Mon, 17 Aug 2020 15:37:08 +0000 (15:37 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Mon, 17 Aug 2020 15:37:08 +0000 (15:37 +0000)
commit1921bb7b687c27b011bdfb07d6b1d4bc6493d539
tree3367f6d9bddc8ea80297f1313771a3551a1526e0
parentc119ccdbfd05f15d209835d06e329495821a1fdb
With INVARIANTS panic immediately if M_WAITOK is requested in a
non-sleepable context.  Previously only _sleep() would panic.
This will catch misuse of M_WAITOK at development stage rather
than at stress load stage.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D26027
sys/kern/kern_malloc.c
sys/vm/uma_core.c