summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-08-09 13:27:50 +0000
committerrwatson <rwatson@FreeBSD.org>2005-08-09 13:27:50 +0000
commit9025d9a2b8be4770fa4396f9d10628d58367d8ba (patch)
treeb57c59b89d2a6b65fee4ed843ca9f7b1aaab60d1 /sys/kern/subr_witness.c
parent8747fe5de79e61e928c17202a1207a2ae4322270 (diff)
downloadFreeBSD-src-9025d9a2b8be4770fa4396f9d10628d58367d8ba.zip
FreeBSD-src-9025d9a2b8be4770fa4396f9d10628d58367d8ba.tar.gz
Add an order between UDP inpcb locks and the IPv4 multicast address
list lock, as there has been a report that an alternative lock order is getting introduced. This should help ferret it out. Reported by: Ed Maste <emaste at phaedrus dot sandvine dot ca>
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 190f96e..689e69f 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -286,8 +286,9 @@ static struct witness_order_list_entry order_lists[] = {
{ "ifaddr", &lock_class_mtx_sleep },
{ NULL, NULL },
/*
- * Multicast - protocol locks before interface locks.
+ * Multicast - protocol locks before interface locks, after UDP locks.
*/
+ { "udpinp", &lock_class_mtx_sleep },
{ "in_multi_mtx", &lock_class_mtx_sleep },
{ "igmp_mtx", &lock_class_mtx_sleep },
{ "if_addr_mtx", &lock_class_mtx_sleep },
OpenPOWER on IntegriCloud