Relax locking requirements for in_pcballoc(). All pcbinfo fields
modified by this function are protected by the PCB list lock that is acquired inside the function. This could have been done even before epoch changes, after r286227.
This commit is contained in:
parent
1019be5656
commit
a7f275d187
@ -512,14 +512,6 @@ in_pcballoc(struct socket *so, struct inpcbinfo *pcbinfo)
|
|||||||
struct inpcb *inp;
|
struct inpcb *inp;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
#ifdef INVARIANTS
|
|
||||||
if (pcbinfo == &V_tcbinfo) {
|
|
||||||
NET_EPOCH_ASSERT();
|
|
||||||
} else {
|
|
||||||
INP_INFO_WLOCK_ASSERT(pcbinfo);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
error = 0;
|
error = 0;
|
||||||
inp = uma_zalloc(pcbinfo->ipi_zone, M_NOWAIT);
|
inp = uma_zalloc(pcbinfo->ipi_zone, M_NOWAIT);
|
||||||
if (inp == NULL)
|
if (inp == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user