]> git.pld-linux.org Git - packages/ipset.git/blob - kernel-5.1.patch
d148aeedc290b988182592b9c4325746b3dee7da
[packages/ipset.git] / kernel-5.1.patch
1 --- ipset-7.1/kernel/net/netfilter/ipset/ip_set_hash_gen.h~     2018-12-10 18:35:31.000000000 +0100
2 +++ ipset-7.1/kernel/net/netfilter/ipset/ip_set_hash_gen.h      2019-05-07 18:42:08.063827159 +0200
3 @@ -666,8 +666,11 @@
4         spin_unlock_bh(&set->lock);
5  
6         /* Give time to other readers of the set */
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
8 +       synchronize_rcu();
9 +#else
10         synchronize_rcu_bh();
11 -
12 +#endif
13         pr_debug("set %s resized from %u (%p) to %u (%p)\n", set->name,
14                  orig->htable_bits, orig, t->htable_bits, t);
15         /* If there's nobody else dumping the table, destroy it */
This page took 0.015959 seconds and 2 git commands to generate.