Search Linux Wireless

Re: [PATCH stable] softmac: Fix deadlock of wx_set_essid with assoc work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2007-08-03 at 12:50 +0200, Michael Buesch wrote:
> On Friday 03 August 2007 00:02:07 Johannes Berg wrote:
> > Adding to my previous mail, this fix is not enough. As you can see
> > below, it is never safe to call flush_scheduled_work() under rtnl
> > because some other things running *from* the global events workqueue
> > acquire the rtnl and hence it we could deadlock against them.
> > 
> > I think the fix would be to use cancel_delayed_work_sync() here instead
> > of a combination of cancel_delayed_work() and flush_workqueue().
> 
> Ah, Ok. I didn't see that rtnl is locked there, too.

Well, it's a wireless extensions call...

> cancel_delayed_work_sync could probably work. Care to test that?

I can give it a try next week.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux