freebsd-skq/sys
pkelsey 66e343b64f When a netmap process terminates without the full set of buffers it
was granted via rings and ni_bufs_list_head represented in those rings
and lists (e.g., via SIGKILL), those buffers are no longer available
for subsequent users for the lifetime of the system. To mitigate this
resource leak, reset the allocator state when the last ref to that
allocator is released.

Note that this only recovers leaked resources for an allocator when
there are no longer any users of that allocator, so there remain
circumstances in which leaked allocator resources may not ever be
recovered - consider a set of multiple netmap processes that are all
using the same allocator (say, the global allocator) where members of
that set may be killed and restarted over time but at any given point
there is one member of that set running.

Based on intial work by adrian@.

Reviewed by: Giuseppe Lettieri (g.lettieri@iet.unipi.it), luigi
Approved by: jmallett (mentor)
MFC after: 1 week
Sponsored by: Norse Corp, Inc.
2015-05-15 15:36:57 +00:00
..
amd64 On amd64, make proc0 pmap initialization slightly more correct. In 2015-05-15 08:30:29 +00:00
arm It appears to be armv7_sleep is a duplication of armv7_cpu_sleep. 2015-05-15 00:39:51 +00:00
arm64 Build GENERIC with RACCT/RCTL support by default. Note that it still 2015-05-14 14:03:55 +00:00
boot Remove OUTPUT_FORMAT from theARM EFI linker script, it breaks building 2015-05-14 12:43:39 +00:00
bsm
cam Handle EDQUOT backend storage errors same as ENOSPC. 2015-05-06 19:47:31 +00:00
cddl Add copyright info missing from r282205 2015-05-14 08:13:01 +00:00
compat On exec, single-threading must be enforced before arguments space is 2015-05-10 09:00:40 +00:00
conf Build GENERIC with RACCT/RCTL support by default. Note that it still 2015-05-14 14:03:55 +00:00
contrib Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
crypto In the version of gcc in the FreeBSD tree, this modification was made to 2015-04-16 17:42:52 +00:00
ddb
dev When a netmap process terminates without the full set of buffers it 2015-05-15 15:36:57 +00:00
fs Do not promote large async writes to sync. 2015-05-14 10:04:42 +00:00
gdb
geom Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme. 2015-05-05 09:33:02 +00:00
gnu The GNU Amlogic DTS files have some errors (e.g. bad register 2015-04-11 08:17:39 +00:00
i386 Add nvme and nvd drivers to GENERIC for amd64 and i386. 2015-05-14 20:19:22 +00:00
isa
kern Previously, cv_waiters was only updated by cv_signal or cv_wait. If a 2015-05-15 13:50:37 +00:00
kgssapi
libkern Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
mips Provide the number of interrupt resources added to the list 2015-05-15 13:55:18 +00:00
modules Include makefiles necessary to make ixgbe build with the new code. 2015-04-30 22:56:43 +00:00
net Add an ability accept encapsulated packets from different sources by one 2015-05-15 12:19:45 +00:00
net80211 Do not check sequence number for QoS Null frames; set it for generated QoS Null 2015-05-12 16:55:50 +00:00
netgraph Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
netinet Add an ability accept encapsulated packets from different sources by one 2015-05-15 12:19:45 +00:00
netinet6 Add an ability accept encapsulated packets from different sources by one 2015-05-15 12:19:45 +00:00
netipsec Fix the comment. We will not do SPD lookup again, because 2015-04-28 11:03:47 +00:00
netnatm
netpfil bugfix (only affecting the "lookup" option in the userspace version of ipfw): 2015-05-13 11:53:25 +00:00
netsmb
nfs
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver
nlm
ofed Apply proper locking when iterating the multicast addresses and add a 2015-05-12 11:52:34 +00:00
opencrypto Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
pc98 Build GENERIC with RACCT/RCTL support by default. Note that it still 2015-05-14 14:03:55 +00:00
powerpc Provide the number of interrupt resources added to the list 2015-05-15 13:55:18 +00:00
rpc Remove hard limits on number of accepting NFS connections. 2015-04-07 10:25:27 +00:00
security cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
sparc64 Build GENERIC with RACCT/RCTL support by default. Note that it still 2015-05-14 14:03:55 +00:00
sys Previously, cv_waiters was only updated by cv_signal or cv_wait. If a 2015-05-15 13:50:37 +00:00
teken
tools
ufs Limit the number of cylinder groups that will be searched when 2015-04-24 23:27:50 +00:00
vm Satisfy vm_object uma zone destructor requirements after r282660 when 2015-05-10 08:21:03 +00:00
x86 Rewrite amd64 PCID implementation to follow an algorithm described in 2015-05-09 19:11:01 +00:00
xdr
xen xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
Makefile