]> granicus.if.org Git - ipset/commit
Add proper RCU protection to resizing
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 10 Dec 2010 16:04:38 +0000 (17:04 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 10 Dec 2010 16:04:38 +0000 (17:04 +0100)
commitf40abbbef2032beeeda7b7cc2f2330d75c3fc7dc
treec1e1507f605d01278ec82c6b5d630d9a48d6f021
parent5a5c5896d89670a853c5b6557c1480ac0e239f86
Add proper RCU protection to resizing

Resizing can be triggered by userspace command only, and those
are serialized by the nfnl mutex. During resizing the set is
read-locked, so the only possible concurrent operations are
the kernel side readers. Those must be protected by proper RCU locking.
kernel/include/linux/netfilter/ipset/ip_set_ahash.h