Search Linux Wireless

Re: [RFC] rfkill: rewrite

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

 



On Mon, 2009-03-30 at 11:57 +0200, Johannes Berg wrote:

> > > One thing I was wondering about -- should we just implement polling via
> > > a single work struct that iterates all those rfkill drivers that need
> > > polling? I've given them each an own right now, but that seems
> > > unnecessary.
> > 
> > If it doesn't add new locking problems (global locks, etc...) that'd be OK.
> 
> Hm, indeed, it probably would -- rfkill_register needs a global lock
> while being called from the driver, and the polling would need the same
> lock while calling into the driver.

We can work around that by cancelling the work whenever we want to
modify the list -- that way the work doesn't need to take any locks. Not
sure it's worth it though, that makes the code harder to follow.

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