[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <152216238129.1634.4807322431520445566.stgit@localhost.localdomain>
Date: Tue, 27 Mar 2018 18:01:42 +0300
From: Kirill Tkhai <ktkhai@...tuozzo.com>
To: davem@...emloft.net, ktkhai@...tuozzo.com,
nicolas.dichtel@...nd.com, vyasevic@...hat.com,
paulmck@...ux.vnet.ibm.com, vyasevich@...il.com,
mark.rutland@....com, leonro@...lanox.com, avagin@...tuozzo.com,
fw@...len.de, ebiederm@...ssion.com, roman.kapl@...go.com,
dsahern@...il.com, netdev@...r.kernel.org, bfields@...ldses.org
Subject: [PATCH net-next 0/5] Make pernet_operations always read locked
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(-)
--
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
Powered by blists - more mailing lists