Search Linux Wireless

Re: [PATCH V2 02/10] nl80211: allow multiple active scheduled scan requests

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

 





On 4/18/2017 10:55 AM, Johannes Berg wrote:
On Tue, 2017-04-18 at 10:53 +0200, Johannes Berg wrote:
Hi Arend,

Overall this looks good, and I've almost applied it - but I have a
question on this patch.

You have this list:

+	struct list_head sched_scan_req_list;
  	struct cfg80211_sched_scan_request __rcu *sched_scan_req;

but you kept this. In fact, it's even still *used*. I don't
understand
that part.

Also, you used RCU primitives for the new list, but you never
actually
used them - except in one place (in nl80211_stop_sched_scan) where
it's
actually not needed at all and the _rcu should be removed (since it
holds the lock)

What's up with that?

Actually, I think I see what's up - you simply forgot to remove the
sched_scan_req member, and then didn't realize that it was still used
in nl80211_netlink_notify(), and that's the place that *does* need the
RCU stuff.

Yes. Sorry for screwing it up. Will rebase the series and fix it.

Regards,
Arend




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux