Thread (23 messages) flat view 23 messages, 8 authors, 2007-09-13

Re: BUG: scheduling while atomic: ifconfig/0x00000002/4170

From: Michael Buesch <hidden>
Date: 2007-09-07 16:02:48
Also in: linux-wireless, lkml

On Friday 07 September 2007, Johannes Berg wrote:
On Thu, 2007-09-06 at 08:46 -0700, Paul E. McKenney wrote:
quoted
Looks good to me from an RCU viewpoint.  I cannot claim familiarity with
this code.  I therefore especially like the indications of where RTNL
is held and not!!!
:)
quoted
Some questions below based on a quick scan.  And a global question:
should the comments about RTNL being held be replaced by ASSERT_RTNL()?
I don't like ASSERT_RTNL() much because it actually tries to lock it.
I'd be much happer if it was WARN_ON(!mutex_locked(&rtnl_mutex)) or
something equivalent.
What's the problem with trying to lock it?
In the paths where you insert this assertion, you will be locked.
So the trylock will fail and not cause any blocking or something else.
It's basically not more expensive than your mutex_locked test.
And the !mutex_locked test might not work on UP (Not sure, about
the current implementation.)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help