Use M_NOWAIT while holding the pf giant lock.
This commit is contained in:
parent
c0f1fd3e76
commit
620ea86f1a
@ -506,8 +506,7 @@ pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af)
|
||||
if (aw->type != PF_ADDR_DYNIFTL)
|
||||
return (0);
|
||||
#ifdef __FreeBSD__
|
||||
/* XXX: revisit! */
|
||||
if ((dyn = pool_get(&V_pfi_addr_pl, PR_WAITOK | PR_ZERO))
|
||||
if ((dyn = pool_get(&V_pfi_addr_pl, PR_NOWAIT | PR_ZERO))
|
||||
#else
|
||||
if ((dyn = pool_get(&pfi_addr_pl, PR_WAITOK | PR_LIMITFAIL | PR_ZERO))
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user