From 4850546f51d8a1e4d1391323202c82ea4a6d0f49 Mon Sep 17 00:00:00 2001 From: "Wojciech A. Koszek" Date: Sun, 1 Apr 2007 15:48:10 +0000 Subject: [PATCH] ng_node and ng_worklist locks both migrated from being spinning locks to adaptive mutexes. Let witness(4) calm down and bring proper types of those locks to the lock order database. Glanced at by: rwatson --- sys/kern/subr_witness.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index d09ab6f8665e..069804eaadbd 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -361,6 +361,12 @@ static struct witness_order_list_entry order_lists[] = { { "nfsd_mtx", &lock_class_mtx_sleep }, { "so_snd", &lock_class_mtx_sleep }, { NULL, NULL }, + /* + * Netgraph + */ + { "ng_node", &lock_class_mtx_sleep }, + { "ng_worklist", &lock_class_mtx_sleep }, + { NULL, NULL }, /* * CDEV */ @@ -390,8 +396,6 @@ static struct witness_order_list_entry order_lists[] = { { "scc_hwmtx", &lock_class_mtx_spin }, { "uart_hwmtx", &lock_class_mtx_spin }, { "zstty", &lock_class_mtx_spin }, - { "ng_node", &lock_class_mtx_spin }, - { "ng_worklist", &lock_class_mtx_spin }, { "fast_taskqueue", &lock_class_mtx_spin }, { "intr table", &lock_class_mtx_spin }, { "sleepq chain", &lock_class_mtx_spin },