]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
Merge r230119, r238498 from head:
authorglebius <glebius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 18 Jul 2012 16:13:03 +0000 (16:13 +0000)
committerglebius <glebius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 18 Jul 2012 16:13:03 +0000 (16:13 +0000)
commit7c8737049dfc52c3164f61fa83e01bb144565abb
tree1bc8a91e7cf3512314828b0ceafd28ef4094c27c
parent17288d07510be95709146013e6c395a30ee2608f
Merge r230119, r238498 from head:

------------------------------------------------------------------------
r230119 | csjp | 2012-01-15 02:51:34 +0400 (вс, 15 янв 2012) | 9 lines

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

------------------------------------------------------------------------
r238498 | glebius | 2012-07-15 23:10:00 +0400 (вс, 15 июл 2012) | 2 lines

Use M_NOWAIT while holding the pf giant lock.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/contrib/pf/net/pf_if.c
sys/contrib/pf/net/pf_table.c