summaryrefslogtreecommitdiffstats
path: root/init/version.c
diff options
context:
space:
mode:
authorPatrick McHardy2015-03-26 13:39:39 +0100
committerPablo Neira Ayuso2015-04-01 11:17:29 +0200
commit6908665826d56ddd024f3e131a9ee36f0d140943 (patch)
tree723d477396da1b93c2657e2d35c50a538e411bae /init/version.c
parentnetfilter: nf_tables: add set garbage collection helpers (diff)
downloadkernel-qcow2-linux-6908665826d56ddd024f3e131a9ee36f0d140943.tar.gz
kernel-qcow2-linux-6908665826d56ddd024f3e131a9ee36f0d140943.tar.xz
kernel-qcow2-linux-6908665826d56ddd024f3e131a9ee36f0d140943.zip
netfilter: nf_tables: add GC synchronization helpers
GC is expected to happen asynchrously to the netlink interface. In the netlink path, both insertion and removal of elements consist of two steps, insertion followed by activation or deactivation followed by removal, during which the element must not be freed by GC. The synchronization helpers use an unused bit in the genmask field to atomically mark an element as "busy", meaning it is either currently being handled through the netlink API or by GC. Elements being processed by GC will never survive, netlink will simply ignore them. Elements being currently processed through netlink will be skipped by GC and reprocessed during the next run. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions