From: Vladimir Oltean <olteanv@gmail.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH net] docs: net: fix documentation on .ndo_get_stats
Date: Tue, 5 Jan 2021 03:03:27 +0200 [thread overview]
Message-ID: <20210105010327.uc3zftj4sgkpjtwx@skbuf> (raw)
In-Reply-To: <20210104095309.28682a9b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
On Mon, Jan 04, 2021 at 09:53:09AM -0800, Jakub Kicinski wrote:
> On Mon, 4 Jan 2021 12:42:27 +0200 Vladimir Oltean wrote:
> > On Wed, Dec 30, 2020 at 07:45:24PM -0800, Jakub Kicinski wrote:
> > > Fix calling context.
> > >
> > > Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> > > ---
> > > Documentation/networking/netdevices.rst | 4 ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/Documentation/networking/netdevices.rst b/Documentation/networking/netdevices.rst
> > > index 5a85fcc80c76..a80676f5477d 100644
> > > --- a/Documentation/networking/netdevices.rst
> > > +++ b/Documentation/networking/netdevices.rst
> > > @@ -64,8 +64,8 @@ struct net_device synchronization rules
> > > Context: process
> > >
> > > ndo_get_stats:
> > > - Synchronization: dev_base_lock rwlock.
> > > - Context: nominally process, but don't sleep inside an rwlock
> > > + Synchronization: rtnl_lock() semaphore, or RCU.
> > > + Context: atomic
> > >
> > > ndo_start_xmit:
> > > Synchronization: __netif_tx_lock spinlock.
> >
> > And what happened to dev_base_lock? Did it suddenly go away?
>
> I thought all callers switched to RCU. You investigated this in depth,
> did I miss something? I'm sending this correction because I have a
> series which adds to other sections of this file and this jumped out
> to me as incorrect.
Well, there's netstat_show from net/core/net-sysfs.c still. I couldn't
figure why that lock exists, it doesn't seem to protect something in
particular.
next prev parent reply other threads:[~2021-01-05 1:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 3:45 [PATCH net] docs: net: fix documentation on .ndo_get_stats Jakub Kicinski
2021-01-04 10:42 ` Vladimir Oltean
2021-01-04 17:53 ` Jakub Kicinski
2021-01-05 1:03 ` Vladimir Oltean [this message]
2021-01-05 1:18 ` Jakub Kicinski
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=20210105010327.uc3zftj4sgkpjtwx@skbuf \
--to=olteanv@gmail.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--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