* [PATCH] net: add rtnl assertion to linkwatch_run_queue
@ 2010-05-27 5:51 Denis Kirjanov
2010-05-29 7:01 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Denis Kirjanov @ 2010-05-27 5:51 UTC (permalink / raw)
To: davem; +Cc: eric.dumazet, shemminger, herbert, kaber, netdev
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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: add rtnl assertion to linkwatch_run_queue
2010-05-27 5:51 [PATCH] net: add rtnl assertion to linkwatch_run_queue Denis Kirjanov
@ 2010-05-29 7:01 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-05-29 7:01 UTC (permalink / raw)
To: dkirjanov; +Cc: eric.dumazet, shemminger, herbert, kaber, netdev
From: Denis Kirjanov <dkirjanov@hera.kernel.org>
Date: Thu, 27 May 2010 05:51:00 +0000
> Add RTNL assertion to linkwatch_run_queue since function
> must be called with semaphore held
>
> Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
This function is exported purely for netdev_wait_allrefs()'s sake
and for no other purpose.
In fact, I'd say this is entirely a private functional interface
specifically built for generic network interface tear-down.
If you are trying to use this function in another context, that's
something you need to discuss with us first before we start peppering
it with various assertions.
I am not applying this patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-29 7:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 5:51 [PATCH] net: add rtnl assertion to linkwatch_run_queue Denis Kirjanov
2010-05-29 7:01 ` David Miller
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).