svn commit: r368617 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sun Dec 13 21:32:20 UTC 2020


Author: mjg
Date: Sun Dec 13 21:32:19 2020
New Revision: 368617
URL: https://svnweb.freebsd.org/changeset/base/368617

Log:
  uipc: disable prediction in unp_pcb_lock_peer
  
  The branch is not very predictable one way or the other, at least during
  buildkernel where it only correctly matched 57% of calls.

Modified:
  head/sys/kern/uipc_usrreq.c

Modified: head/sys/kern/uipc_usrreq.c
==============================================================================
--- head/sys/kern/uipc_usrreq.c	Sun Dec 13 21:30:42 2020	(r368616)
+++ head/sys/kern/uipc_usrreq.c	Sun Dec 13 21:32:19 2020	(r368617)
@@ -382,7 +382,7 @@ unp_pcb_lock_peer(struct unpcb *unp)
 
 	UNP_PCB_LOCK_ASSERT(unp);
 	unp2 = unp->unp_conn;
-	if (__predict_false(unp2 == NULL))
+	if (unp2 == NULL)
 		return (NULL);
 	if (__predict_false(unp == unp2))
 		return (unp);


More information about the svn-src-head mailing list