diff options
| author | 2020-05-27 11:19:28 +0000 | |
|---|---|---|
| committer | 2020-05-27 11:19:28 +0000 | |
| commit | 4d5cbc65b3f249a15784c3b64c2933d8466f7caa (patch) | |
| tree | 3c8cef075a218806de25bcd64f3d244f2ba45dc3 /sys/netinet/in.c | |
| parent | Remove unneeded <stddef.h> (diff) | |
| download | wireguard-openbsd-4d5cbc65b3f249a15784c3b64c2933d8466f7caa.tar.xz wireguard-openbsd-4d5cbc65b3f249a15784c3b64c2933d8466f7caa.zip | |
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@
Diffstat (limited to 'sys/netinet/in.c')
| -rw-r--r-- | sys/netinet/in.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index b494b72e844..a7c3b7724b7 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in.c,v 1.169 2020/03/15 05:34:13 visa Exp $ */ +/* $OpenBSD: in.c,v 1.170 2020/05/27 11:19:28 mpi Exp $ */ /* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */ /* @@ -569,7 +569,7 @@ in_ioctl_get(u_long cmd, caddr_t data, struct ifnet *ifp) return (error); } - NET_RLOCK(); + NET_RLOCK_IN_IOCTL(); TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) { if (ifa->ifa_addr->sa_family != AF_INET) @@ -620,7 +620,7 @@ in_ioctl_get(u_long cmd, caddr_t data, struct ifnet *ifp) } err: - NET_RUNLOCK(); + NET_RUNLOCK_IN_IOCTL(); return (error); } |
