From 030c6fb15639d9a62fbcfab76c18368ebf7a0541 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 9 Sep 2004 05:01:37 +0000 Subject: [PATCH] Hard code witness lock order for BPF locks. --- sys/kern/subr_witness.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 1e40727e2de5..0a2dda6a94e6 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -322,6 +322,13 @@ static struct witness_order_list_entry order_lists[] = { { "ddp_list_mtx", &lock_class_mtx_sleep }, { "ddp_mtx", &lock_class_mtx_sleep }, { NULL, NULL }, + /* + * BPF + */ + { "bpf global lock", &lock_class_mtx_sleep }, + { "bpf interface lock", &lock_class_mtx_sleep }, + { "bpf cdev lock", &lock_class_mtx_sleep }, + { NULL, NULL }, /* * spin locks */