Use M_NOWAIT while holding the pf giant lock.

This commit is contained in:
Gleb Smirnoff 2012-07-15 19:10:00 +00:00
parent 48804d9c0e
commit 6aef0416fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238498

View File

@ -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