Date: Sun, 2 Feb 2014 07:28:05 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261400 - head/sys/netinet6 Message-ID: <201402020728.s127S575010210@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Sun Feb 2 07:28:04 2014 New Revision: 261400 URL: http://svnweb.freebsd.org/changeset/base/261400 Log: 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 Modified: head/sys/netinet6/nd6.c Modified: head/sys/netinet6/nd6.c ============================================================================== --- head/sys/netinet6/nd6.c Sun Feb 2 06:34:38 2014 (r261399) +++ head/sys/netinet6/nd6.c Sun Feb 2 07:28:04 2014 (r261400) @@ -1889,7 +1889,7 @@ nd6_output_lle(struct ifnet *ifp, struct * 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402020728.s127S575010210>