Absense of M_WAITOK in malloc flags for UMA doesn't

equals presense of M_NOWAIT. Specify M_NOWAIT explicitly.

This fixes sleeping with PF_LOCK().
This commit is contained in:
Gleb Smirnoff 2011-10-23 10:13:20 +00:00
parent f54a3a046e
commit 68270a37c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226656

View File

@ -762,7 +762,7 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags)
if (flags & PFSYNC_SI_IOCTL)
pool_flags = PR_WAITOK | PR_ZERO;
else
pool_flags = PR_ZERO;
pool_flags = PR_NOWAIT | PR_ZERO;
if ((st = pool_get(&V_pf_state_pl, pool_flags)) == NULL)
goto cleanup;