diff options
author | shurd <shurd@FreeBSD.org> | 2018-04-18 18:45:04 +0000 |
---|---|---|
committer | shurd <shurd@FreeBSD.org> | 2018-04-18 18:45:04 +0000 |
commit | c4642292bc00ef62b477d6f9395cfcc717abb691 (patch) | |
tree | 785b07f1a5cabd866a5e77960ad3fda13165a96c /sys/kern | |
parent | bcf7cda8c01ea1703330102003ddff5f9fa2fa44 (diff) | |
download | FreeBSD-src-c4642292bc00ef62b477d6f9395cfcc717abb691.zip FreeBSD-src-c4642292bc00ef62b477d6f9395cfcc717abb691.tar.gz |
MFC r332388:
Make BPF global lock an SX
This allows NIC drivers to sleep on polling config operations.
PR: 323477
Submitted by: Matthew Macy <mmacy@mattmacy.io>
Reviewed by: shurd
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D14982
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index be3ca31..d054fec 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -567,7 +567,7 @@ static struct witness_order_list_entry order_lists[] = { /* * BPF */ - { "bpf global lock", &lock_class_mtx_sleep }, + { "bpf global lock", &lock_class_sx }, { "bpf interface lock", &lock_class_rw }, { "bpf cdev lock", &lock_class_mtx_sleep }, { NULL, NULL }, |