From: Denis Kirjanov <dkirjanov@hera•kernel.org>
To: davem@davemloft•net
Cc: eric.dumazet@gmail•com, shemminger@vyatta•com,
herbert@gondor•hengli.com.au, kaber@trash•net,
netdev@vger•kernel.org
Subject: [PATCH] net: add rtnl assertion to linkwatch_run_queue
Date: Thu, 27 May 2010 05:51:00 +0000 [thread overview]
Message-ID: <20100527055100.GA21234@hera.kernel.org> (raw)
Add RTNL assertion to linkwatch_run_queue since function
must be called with semaphore held
Signed-off-by: Denis Kirjanov <dkirjanov@kernel•org>
---
net/core/link_watch.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index bdbce2f..e6d06c0 100644
--- a/net/core/link_watch.c
+++ b/net/core/link_watch.c
@@ -220,6 +220,7 @@ void linkwatch_forget_dev(struct net_device *dev)
/* Must be called with the rtnl semaphore held */
void linkwatch_run_queue(void)
{
+ ASSERT_RTNL();
__linkwatch_run_queue(0);
}
next reply other threads:[~2010-05-27 5:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 5:51 Denis Kirjanov [this message]
2010-05-29 7:01 ` [PATCH] net: add rtnl assertion to linkwatch_run_queue 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=20100527055100.GA21234@hera.kernel.org \
--to=dkirjanov@hera$(echo .)kernel.org \
--cc=davem@davemloft$(echo .)net \
--cc=eric.dumazet@gmail$(echo .)com \
--cc=herbert@gondor$(echo .)hengli.com.au \
--cc=kaber@trash$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
--cc=shemminger@vyatta$(echo .)com \
/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