svn commit: r359592 - in stable/12/sys: kern sys
Mark Johnston
markj at FreeBSD.org
Fri Apr 3 13:35:45 UTC 2020
Author: markj
Date: Fri Apr 3 13:25:53 2020
New Revision: 359592
URL: https://svnweb.freebsd.org/changeset/base/359592
Log:
MFC r359170:
Remove UNP_NASCENT, reverting r303855.
Modified:
stable/12/sys/kern/uipc_usrreq.c
stable/12/sys/sys/unpcb.h
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/uipc_usrreq.c
==============================================================================
--- stable/12/sys/kern/uipc_usrreq.c Fri Apr 3 13:05:26 2020 (r359591)
+++ stable/12/sys/kern/uipc_usrreq.c Fri Apr 3 13:25:53 2020 (r359592)
@@ -523,8 +523,6 @@ uipc_attach(struct socket *so, int proto, struct threa
unp->unp_socket = so;
so->so_pcb = unp;
unp->unp_refcount = 1;
- if (so->so_listen != NULL)
- unp->unp_flags |= UNP_NASCENT;
if ((locked = UNP_LINK_WOWNED()) == false)
UNP_LINK_WLOCK();
@@ -796,9 +794,6 @@ uipc_detach(struct socket *so)
UNP_PCB_UNLOCK(unp);
goto restart;
}
- if ((unp->unp_flags & UNP_NASCENT) != 0) {
- goto teardown;
- }
if ((vp = unp->unp_vnode) != NULL) {
VOP_UNP_DETACH(vp);
unp->unp_vnode = NULL;
@@ -840,7 +835,6 @@ uipc_detach(struct socket *so)
freeunp = unp_pcb_rele(unp);
MPASS(freeunp == 0);
local_unp_rights = unp_rights;
-teardown:
unp->unp_socket->so_pcb = NULL;
saved_unp_addr = unp->unp_addr;
unp->unp_addr = NULL;
@@ -1682,7 +1676,6 @@ unp_connect2(struct socket *so, struct socket *so2, in
if (so2->so_type != so->so_type)
return (EPROTOTYPE);
- unp2->unp_flags &= ~UNP_NASCENT;
unp->unp_conn = unp2;
unp_pcb_hold(unp2);
unp_pcb_hold(unp);
Modified: stable/12/sys/sys/unpcb.h
==============================================================================
--- stable/12/sys/sys/unpcb.h Fri Apr 3 13:05:26 2020 (r359591)
+++ stable/12/sys/sys/unpcb.h Fri Apr 3 13:25:53 2020 (r359592)
@@ -108,7 +108,6 @@ struct unpcb {
*/
#define UNP_CONNECTING 0x010 /* Currently connecting. */
#define UNP_BINDING 0x020 /* Currently binding. */
-#define UNP_NASCENT 0x040 /* Newborn child socket. */
/*
* Flags in unp_gcflag.
More information about the svn-src-all
mailing list