From bdddd88f4db3a2695cd757adb67e03a39030bef7 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 27 May 2020 11:19:30 +0000 Subject: Document the various flavors of NET_LOCK() and rename the reader version. Since our last concurrency mistake only ioctl(2) ans sysctl(2) code path take the reader lock. This is mostly for documentation purpose as long as the softnet thread is converted back to use a read lock. dlg@ said that comments should be good enough. ok sashan@ --- sys/netinet6/in6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet6/in6.c') diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 2bd9a74b8ae..ca8c78c7b9f 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.235 2020/03/15 05:34:14 visa Exp $ */ +/* $OpenBSD: in6.c,v 1.236 2020/05/27 11:19:29 mpi Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -412,7 +412,7 @@ in6_ioctl_get(u_long cmd, caddr_t data, struct ifnet *ifp) return (error); } - NET_RLOCK(); + NET_RLOCK_IN_IOCTL(); if (sa6 != NULL) { error = in6_check_embed_scope(sa6, ifp->if_index); @@ -506,7 +506,7 @@ in6_ioctl_get(u_long cmd, caddr_t data, struct ifnet *ifp) } err: - NET_RUNLOCK(); + NET_RUNLOCK_IN_IOCTL(); return (error); } -- cgit v1.2.3