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

Johannes Berg
2007-09-06T12:43:32Z

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

On Thu, 2007-09-06 at 20:36 +0800, Herbert Xu wrote:
> Johannes Berg <johannes@sipsolutions.net> wrote:
> >
> > Hah, I suspected as much but didn't have a chance to look yet. I had
> > plans to replace that sub_if_list with an RCU list and not require the
> > lock there, but that's far off. Any ideas how to fix this? We can't
> > reject the master stop so we have to walk the list, I guess we'll have
> > to audit the other list manipulation places, I think they're all under
> > RTNL.
>
> Yeah I think they're all under RTNL too. So you don't need to
> take the lock here at all since you should already have the RTNL.

I'll take a look at them and post appropriate patches.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]