From: Nicolas Dichtel <nicolas.dichtel@dev•6wind.com>
To: netdev <netdev@vger•kernel.org>
Subject: dev_change_net_namespace() and synchronize_net()
Date: Tue, 27 Jan 2009 11:23:11 +0100 [thread overview]
Message-ID: <497EE08F.5050704@dev.6wind.com> (raw)
Hi folks,
I'm asking me philosophical questions about synchronize_net(). In my
understanding, it is used to ensure that processing of current packets are finished.
In function dev_change_net_namespace(), synchronize_net() is called twice:
One time, between dev_close() and dev_shutdown(). I don't understand why it's
needed here:
- if interface is down, no packet can be processed by it
- if interface is up, dev_close() will call dev_deactivate() which will call
synchronize_rcu() (equivalent to synchronize_net()).
Second time, synchronize_net() is called just before exiting. Is it really
necessary?
Thank you for your answers,
Nicolas
reply other threads:[~2009-01-27 10:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=497EE08F.5050704@dev.6wind.com \
--to=nicolas.dichtel@dev$(echo .)6wind.com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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