Netdev List
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: davem@davemloft.net, ktkhai@virtuozzo.com,
	nicolas.dichtel@6wind.com, vyasevic@redhat.com,
	paulmck@linux.vnet.ibm.com, vyasevich@gmail.com,
	mark.rutland@arm.com, leonro@mellanox.com, avagin@virtuozzo.com,
	fw@strlen.de, ebiederm@xmission.com, roman.kapl@sysgo.com,
	dsahern@gmail.com, netdev@vger.kernel.org, bfields@fieldses.org
Subject: [PATCH net-next 0/5] Make pernet_operations always read locked
Date: Tue, 27 Mar 2018 18:01:42 +0300	[thread overview]
Message-ID: <152216238129.1634.4807322431520445566.stgit@localhost.localdomain> (raw)

All the pernet_operations are converted, and the last one
is in this patchset (nfsd_net_ops acked by J. Bruce Fields).
So, it's the time to kill pernet_operations::async field,
and make setup_net() and cleanup_net() always require
the rwsem only read locked.

All further pernet_operations have to be developed to fit
this rule. Some of previous patches added a comment to
struct pernet_operations about that.

Also, this patchset renames net_sem to pernet_ops_rwsem
to make the target area of the rwsem is more clear visible,
and adds more comments.

Thanks,
Kirill
---

Kirill Tkhai (5):
      net: Convert nfsd_net_ops
      net: Reflect all pernet_operations are converted
      net: Drop pernet_operations::async
      net: Rename net_sem to pernet_ops_rwsem
      net: Add more comments


 drivers/infiniband/core/cma.c                  |    1 
 drivers/net/bonding/bond_main.c                |    1 
 drivers/net/geneve.c                           |    1 
 drivers/net/gtp.c                              |    1 
 drivers/net/ipvlan/ipvlan_main.c               |    1 
 drivers/net/loopback.c                         |    1 
 drivers/net/ppp/ppp_generic.c                  |    1 
 drivers/net/ppp/pppoe.c                        |    1 
 drivers/net/vrf.c                              |    1 
 drivers/net/vxlan.c                            |    1 
 drivers/net/wireless/mac80211_hwsim.c          |    1 
 fs/lockd/svc.c                                 |    1 
 fs/nfs/blocklayout/rpc_pipefs.c                |    1 
 fs/nfs/dns_resolve.c                           |    1 
 fs/nfs/inode.c                                 |    1 
 fs/nfs_common/grace.c                          |    1 
 fs/proc/proc_net.c                             |    1 
 include/linux/rtnetlink.h                      |    2 -
 include/net/net_namespace.h                    |   22 +++----
 kernel/audit.c                                 |    1 
 lib/kobject_uevent.c                           |    1 
 net/8021q/vlan.c                               |    1 
 net/bridge/br.c                                |    1 
 net/bridge/br_netfilter_hooks.c                |    1 
 net/bridge/netfilter/ebtable_broute.c          |    1 
 net/bridge/netfilter/ebtable_filter.c          |    1 
 net/bridge/netfilter/ebtable_nat.c             |    1 
 net/bridge/netfilter/nf_log_bridge.c           |    1 
 net/caif/caif_dev.c                            |    1 
 net/can/af_can.c                               |    1 
 net/can/bcm.c                                  |    1 
 net/can/gw.c                                   |    1 
 net/core/dev.c                                 |    2 -
 net/core/fib_notifier.c                        |    1 
 net/core/fib_rules.c                           |    1 
 net/core/net-procfs.c                          |    2 -
 net/core/net_namespace.c                       |   77 +++++++-----------------
 net/core/pktgen.c                              |    1 
 net/core/rtnetlink.c                           |    7 +-
 net/core/sock.c                                |    2 -
 net/core/sock_diag.c                           |    1 
 net/core/sysctl_net_core.c                     |    1 
 net/dccp/ipv4.c                                |    1 
 net/dccp/ipv6.c                                |    1 
 net/ieee802154/6lowpan/reassembly.c            |    1 
 net/ieee802154/core.c                          |    1 
 net/ipv4/af_inet.c                             |    2 -
 net/ipv4/arp.c                                 |    1 
 net/ipv4/devinet.c                             |    1 
 net/ipv4/fib_frontend.c                        |    1 
 net/ipv4/fou.c                                 |    1 
 net/ipv4/icmp.c                                |    1 
 net/ipv4/igmp.c                                |    1 
 net/ipv4/ip_fragment.c                         |    1 
 net/ipv4/ip_gre.c                              |    3 -
 net/ipv4/ip_vti.c                              |    1 
 net/ipv4/ipip.c                                |    1 
 net/ipv4/ipmr.c                                |    1 
 net/ipv4/netfilter/arp_tables.c                |    1 
 net/ipv4/netfilter/arptable_filter.c           |    1 
 net/ipv4/netfilter/ip_tables.c                 |    1 
 net/ipv4/netfilter/ipt_CLUSTERIP.c             |    1 
 net/ipv4/netfilter/iptable_filter.c            |    1 
 net/ipv4/netfilter/iptable_mangle.c            |    1 
 net/ipv4/netfilter/iptable_nat.c               |    1 
 net/ipv4/netfilter/iptable_raw.c               |    1 
 net/ipv4/netfilter/iptable_security.c          |    1 
 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c |    1 
 net/ipv4/netfilter/nf_defrag_ipv4.c            |    1 
 net/ipv4/netfilter/nf_log_arp.c                |    1 
 net/ipv4/netfilter/nf_log_ipv4.c               |    1 
 net/ipv4/ping.c                                |    1 
 net/ipv4/proc.c                                |    1 
 net/ipv4/raw.c                                 |    1 
 net/ipv4/route.c                               |    4 -
 net/ipv4/sysctl_net_ipv4.c                     |    1 
 net/ipv4/tcp_ipv4.c                            |    2 -
 net/ipv4/tcp_metrics.c                         |    1 
 net/ipv4/udp.c                                 |    2 -
 net/ipv4/udplite.c                             |    1 
 net/ipv4/xfrm4_policy.c                        |    1 
 net/ipv6/addrconf.c                            |    2 -
 net/ipv6/addrlabel.c                           |    1 
 net/ipv6/af_inet6.c                            |    1 
 net/ipv6/fib6_rules.c                          |    1 
 net/ipv6/icmp.c                                |    1 
 net/ipv6/ila/ila_xlat.c                        |    1 
 net/ipv6/ip6_fib.c                             |    1 
 net/ipv6/ip6_flowlabel.c                       |    1 
 net/ipv6/ip6_gre.c                             |    1 
 net/ipv6/ip6_tunnel.c                          |    1 
 net/ipv6/ip6_vti.c                             |    1 
 net/ipv6/ip6mr.c                               |    1 
 net/ipv6/mcast.c                               |    1 
 net/ipv6/ndisc.c                               |    1 
 net/ipv6/netfilter/ip6_tables.c                |    1 
 net/ipv6/netfilter/ip6table_filter.c           |    1 
 net/ipv6/netfilter/ip6table_mangle.c           |    1 
 net/ipv6/netfilter/ip6table_nat.c              |    1 
 net/ipv6/netfilter/ip6table_raw.c              |    1 
 net/ipv6/netfilter/ip6table_security.c         |    1 
 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c |    1 
 net/ipv6/netfilter/nf_conntrack_reasm.c        |    1 
 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c      |    1 
 net/ipv6/netfilter/nf_log_ipv6.c               |    1 
 net/ipv6/ping.c                                |    1 
 net/ipv6/proc.c                                |    1 
 net/ipv6/raw.c                                 |    1 
 net/ipv6/reassembly.c                          |    1 
 net/ipv6/route.c                               |    3 -
 net/ipv6/seg6.c                                |    1 
 net/ipv6/sit.c                                 |    1 
 net/ipv6/sysctl_net_ipv6.c                     |    1 
 net/ipv6/tcp_ipv6.c                            |    1 
 net/ipv6/udplite.c                             |    1 
 net/ipv6/xfrm6_policy.c                        |    1 
 net/ipv6/xfrm6_tunnel.c                        |    1 
 net/kcm/kcmproc.c                              |    1 
 net/kcm/kcmsock.c                              |    1 
 net/key/af_key.c                               |    1 
 net/l2tp/l2tp_core.c                           |    1 
 net/l2tp/l2tp_ppp.c                            |    1 
 net/mpls/af_mpls.c                             |    1 
 net/netfilter/core.c                           |    1 
 net/netfilter/ipset/ip_set_core.c              |    1 
 net/netfilter/ipvs/ip_vs_core.c                |    2 -
 net/netfilter/ipvs/ip_vs_ftp.c                 |    1 
 net/netfilter/ipvs/ip_vs_lblc.c                |    1 
 net/netfilter/ipvs/ip_vs_lblcr.c               |    1 
 net/netfilter/nf_conntrack_netlink.c           |    1 
 net/netfilter/nf_conntrack_proto_gre.c         |    1 
 net/netfilter/nf_conntrack_standalone.c        |    1 
 net/netfilter/nf_log.c                         |    1 
 net/netfilter/nf_log_netdev.c                  |    1 
 net/netfilter/nf_synproxy_core.c               |    1 
 net/netfilter/nf_tables_api.c                  |    1 
 net/netfilter/nfnetlink.c                      |    1 
 net/netfilter/nfnetlink_acct.c                 |    1 
 net/netfilter/nfnetlink_cttimeout.c            |    1 
 net/netfilter/nfnetlink_log.c                  |    1 
 net/netfilter/nfnetlink_queue.c                |    1 
 net/netfilter/x_tables.c                       |    1 
 net/netfilter/xt_hashlimit.c                   |    1 
 net/netfilter/xt_recent.c                      |    1 
 net/netlink/af_netlink.c                       |    2 -
 net/netlink/genetlink.c                        |    1 
 net/openvswitch/datapath.c                     |    1 
 net/packet/af_packet.c                         |    1 
 net/phonet/pn_dev.c                            |    1 
 net/rds/tcp.c                                  |    1 
 net/rxrpc/net_ns.c                             |    1 
 net/sched/act_api.c                            |    1 
 net/sched/act_bpf.c                            |    1 
 net/sched/act_connmark.c                       |    1 
 net/sched/act_csum.c                           |    1 
 net/sched/act_gact.c                           |    1 
 net/sched/act_ife.c                            |    1 
 net/sched/act_ipt.c                            |    2 -
 net/sched/act_mirred.c                         |    1 
 net/sched/act_nat.c                            |    1 
 net/sched/act_pedit.c                          |    1 
 net/sched/act_police.c                         |    1 
 net/sched/act_sample.c                         |    1 
 net/sched/act_simple.c                         |    1 
 net/sched/act_skbedit.c                        |    1 
 net/sched/act_skbmod.c                         |    1 
 net/sched/act_tunnel_key.c                     |    1 
 net/sched/act_vlan.c                           |    1 
 net/sched/cls_api.c                            |    1 
 net/sched/sch_api.c                            |    1 
 net/sctp/protocol.c                            |    2 -
 net/sunrpc/auth_gss/auth_gss.c                 |    1 
 net/sunrpc/sunrpc_syms.c                       |    1 
 net/sysctl_net.c                               |    1 
 net/tipc/core.c                                |    1 
 net/unix/af_unix.c                             |    1 
 net/wireless/core.c                            |    1 
 net/wireless/wext-core.c                       |    1 
 net/xfrm/xfrm_policy.c                         |    1 
 net/xfrm/xfrm_user.c                           |    1 
 security/selinux/hooks.c                       |    1 
 security/smack/smack_netfilter.c               |    1 
 182 files changed, 38 insertions(+), 266 deletions(-)

             reply	other threads:[~2018-03-27 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 15:01 Kirill Tkhai [this message]
2018-03-27 15:01 ` [PATCH net-next 1/5] net: Convert nfsd_net_ops Kirill Tkhai
2018-03-27 15:02 ` [PATCH net-next 2/5] net: Reflect all pernet_operations are converted Kirill Tkhai
2018-03-27 15:02 ` [PATCH net-next 3/5] net: Drop pernet_operations::async Kirill Tkhai
2018-03-27 15:02 ` [PATCH net-next 4/5] net: Rename net_sem to pernet_ops_rwsem Kirill Tkhai
2018-03-27 15:02 ` [PATCH net-next 5/5] net: Add more comments Kirill Tkhai
2018-03-27 17:18 ` [PATCH net-next 0/5] Make pernet_operations always read locked David Miller
2018-03-27 17:34   ` Kirill Tkhai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=152216238129.1634.4807322431520445566.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=avagin@virtuozzo.com \
    --cc=bfields@fieldses.org \
    --cc=davem@davemloft.net \
    --cc=dsahern@gmail.com \
    --cc=ebiederm@xmission.com \
    --cc=fw@strlen.de \
    --cc=leonro@mellanox.com \
    --cc=mark.rutland@arm.com \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=roman.kapl@sysgo.com \
    --cc=vyasevic@redhat.com \
    --cc=vyasevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox