Use M_NOWAIT while holding the pf giant lock.
This commit is contained in:
parent
48804d9c0e
commit
6aef0416fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238498
@ -506,8 +506,7 @@ pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af)
|
|||||||
if (aw->type != PF_ADDR_DYNIFTL)
|
if (aw->type != PF_ADDR_DYNIFTL)
|
||||||
return (0);
|
return (0);
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
/* XXX: revisit! */
|
if ((dyn = pool_get(&V_pfi_addr_pl, PR_NOWAIT | PR_ZERO))
|
||||||
if ((dyn = pool_get(&V_pfi_addr_pl, PR_WAITOK | PR_ZERO))
|
|
||||||
#else
|
#else
|
||||||
if ((dyn = pool_get(&pfi_addr_pl, PR_WAITOK | PR_LIMITFAIL | PR_ZERO))
|
if ((dyn = pool_get(&pfi_addr_pl, PR_WAITOK | PR_LIMITFAIL | PR_ZERO))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user