aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-09-09 05:01:37 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-09-09 05:01:37 +0000
commit030c6fb15639d9a62fbcfab76c18368ebf7a0541 (patch)
tree2868a90d213e606d65c4bd60027c1c0026d01579
parent46448b5a1bd84793e1a44c6805a40d527cc2b97b (diff)
downloadsrc-030c6fb15639d9a62fbcfab76c18368ebf7a0541.tar.gz
src-030c6fb15639d9a62fbcfab76c18368ebf7a0541.zip
Hard code witness lock order for BPF locks.
Notes
Notes: svn path=/head/; revision=134971
-rw-r--r--sys/kern/subr_witness.c7
1 files changed, 7 insertions, 0 deletions
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
@@ -323,6 +323,13 @@ static struct witness_order_list_entry order_lists[] = {
{ "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
*/
#ifdef SMP