1. 08 3月, 2018 7 次提交
  2. 07 3月, 2018 6 次提交
  3. 06 3月, 2018 21 次提交
  4. 05 3月, 2018 6 次提交
    • D
      Merge branch 'convert-pernet_operations-part4' · 229952d1
      David S. Miller 提交于
      Kirill Tkhai says:
      
      ====================
      Converting pernet_operations (part #4)
      
      this series continues to review and to convert pernet_operations
      to make them possible to be executed in parallel for several
      net namespaces in the same time. The patches touch mostly netfilter,
      also there are small number of changes in other places.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      229952d1
    • K
      net: Convert proto_gre_net_ops · c29babb7
      Kirill Tkhai 提交于
      These pernet_operations register and unregister sysctl.
      nf_conntrack_l4proto_gre4->init_net is simple memory
      initializer. Also, exit method removes gre keymap_list,
      which is per-net. This looks safe to be executed
      in parallel with other pernet_operations.
      Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c29babb7
    • K
      net: Convert ctnetlink_net_ops · b04a3d09
      Kirill Tkhai 提交于
      These pernet_operations register and unregister
      two conntrack notifiers, and they seem to be safe
      to be executed in parallel.
      
      General/not related to async pernet_operations JFI:
      ctnetlink_net_exit_batch() actions are grouped in batch,
      and this could look like there is synchronize_rcu()
      is forgotten. But there is synchronize_rcu() on module
      exit patch (in ctnetlink_exit()), so this batch may
      be reworked as simple .exit method.
      Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b04a3d09
    • K
      net: Convert nf_conntrack_net_ops · 467d14b3
      Kirill Tkhai 提交于
      These pernet_operations register and unregister sysctl and /proc
      entries. Exit batch method also waits till all per-net conntracks
      are dead. Thus, they are safe to be marked as async.
      Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      467d14b3
    • K
      net: Convert ip_set_net_ops · a5a179b6
      Kirill Tkhai 提交于
      These pernet_operations initialize and destroy
      net_generic(net, ip_set_net_id)-related data.
      Since ip_set is under CONFIG_IP_SET, it's easy
      to watch drivers, which depend on this config.
      All of them are in net/netfilter/ipset directory,
      except of net/netfilter/xt_set.c. There are no
      more drivers, which use ip_set, and all of
      the above don't register another pernet_operations.
      Also, there are is no indirect users, as header
      file include/linux/netfilter/ipset/ip_set.h does
      not define indirect users by something like this:
      
      	#ifdef CONFIG_IP_SET
      	extern func(void);
      	#else
      	static inline func(void);
      	#endif
      
      So, there are no more pernet operations, dereferencing
      net_generic(net, ip_set_net_id).
      
      ip_set_net_ops are OK to be executed in parallel
      for several net, so we mark them as async.
      Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a5a179b6
    • K
      net: Convert fou_net_ops · 6c6c566e
      Kirill Tkhai 提交于
      These pernet_operations initialize and destroy
      pernet net_generic(net, fou_net_id) list.
      The rest of net_generic(net, fou_net_id) accesses
      may happen after netlink message, and in-tree
      pernet_operations do not send FOU_GENL_NAME messages.
      So, these pernet_operations are safe to be marked
      as async.
      Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6c6c566e