netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: David Miller <davem@davemloft.net>
Cc: fw@strlen.de, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 0/7] rtnetlink: allow to run selected handlers without rtnl
Date: Wed, 9 Aug 2017 10:19:28 +0200	[thread overview]
Message-ID: <20170809081928.GA26899@breakpoint.cc> (raw)
In-Reply-To: <20170808.213329.522107918983433411.davem@davemloft.net>

David Miller <davem@davemloft.net> wrote:
> From: Florian Westphal <fw@strlen.de>
> Date: Tue,  8 Aug 2017 18:02:29 +0200
> 
> > Unfortunately RTNL mutex is a performance issue, e.g. a cpu adding
> > an ip address prevents other cpus from seemingly unrelated tasks
> > such as dumping tc classifiers.
> 
> It is related if somehow the TC entries refer to IP addresses.
>
> Someone could create something like that.

Actually I am not following.  Why would read-only accesses need rtnl
locking wrt. any other operation (provided of course rtnl lock doesn't
protect the data structure)?

> > Initial no-rtnl spots are ip6 fib add/del and netns new/getid.
> 
> I could see the netns stuff being ok, but IPv6 route add/del I'm
> not so sure of.

[..]

> There really is a hierachy of these dependencies.  Device state, up
> to neighbour table state, up to protocol address state, up to routes,
>    up to FIB tables, etc. etc. etc.
> 
>    I'd really like to make this operate more freely, but this is an
>    extremely delicate area which has been bottled up like this for
>    two decades so good luck :-)

Would you accept a v2 if i don't touch ipv6 routes for the time being?

I would then audit those again.  At the very least inet6_rtm_getroute should
be able to work without rtnl lock (i.e., use a different lock if
needed to protect vs. concurrent modifications).

  reply	other threads:[~2017-08-09  8:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 16:02 [PATCH net-next 0/7] rtnetlink: allow to run selected handlers without rtnl Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 1/7] rtnetlink: call rtnl_calcit directly Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 2/7] rtnetlink: make rtnl_register accept a flags parameter Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 3/7] rtnetlink: add reference counting to prevent module unload while dump is in progress Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 4/7] rtnetlink: small rtnl lock pushdown Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 5/7] rtnetlink: protect handler table with rcu Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 6/7] rtnetlink: add and use RTNL_FLAG_DOIT_UNLOCKED Florian Westphal
2017-08-08 16:02 ` [PATCH net-next 7/7] net: call newid/getid without rtnl mutex held Florian Westphal
2017-08-09  4:33 ` [PATCH net-next 0/7] rtnetlink: allow to run selected handlers without rtnl David Miller
2017-08-09  8:19   ` Florian Westphal [this message]
2017-08-09 16:41     ` David Miller
2017-08-09 16:42     ` David Miller

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=20170809081928.GA26899@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).