diff options
author | ae <ae@FreeBSD.org> | 2014-02-02 07:28:04 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-02-02 07:28:04 +0000 |
commit | d86e904d3f143994a2acfcbbd7c65f82304ecad1 (patch) | |
tree | 8e032230c49bcc88622246dd48fdd64ddd0dc418 /sys/netinet6 | |
parent | 2cbbba8bf8ce7a218864fbd4c5a41c74fb21bcb6 (diff) | |
download | FreeBSD-src-d86e904d3f143994a2acfcbbd7c65f82304ecad1.zip FreeBSD-src-d86e904d3f143994a2acfcbbd7c65f82304ecad1.tar.gz |
Take exclusive lock only when lle isn't NULL. We don't need write access
to lle in most cases.
MFC after: 1 week
Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 5308d79..b3cda71 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1889,7 +1889,7 @@ nd6_output_lle(struct ifnet *ifp, struct ifnet *origifp, struct mbuf *m0, * or an anycast address(i.e. not a multicast). */ - flags = ((m != NULL) || (lle != NULL)) ? LLE_EXCLUSIVE : 0; + flags = (lle != NULL) ? LLE_EXCLUSIVE : 0; if (ln == NULL) { retry: IF_AFDATA_RLOCK(ifp); |