]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revert to the old behavior of allocating table/table entries using
authorChristian S.J. Peron <csjp@FreeBSD.org>
Sat, 14 Jan 2012 22:51:34 +0000 (22:51 +0000)
committerChristian S.J. Peron <csjp@FreeBSD.org>
Sat, 14 Jan 2012 22:51:34 +0000 (22:51 +0000)
commit5646ad6d271638219964e2047132db340831c1eb
treed72cccbf97b07265bd21a4b64a051d62708990e1
parent7f40c1f876247152a495450df0f2545ac735466e
Revert to the old behavior of allocating table/table entries using
M_NOWAIT.  Currently, the code allows for sleeping in the ioctl path
to guarantee allocation.  However code also handles ENOMEM gracefully, so
propagate this error back to user-space, rather than sleeping while
holding the global pf mutex.

Reviewed by: glebius
Discussed with: bz
sys/contrib/pf/net/pf_table.c