Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:45918 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756214AbdDRIzi (ORCPT ); Tue, 18 Apr 2017 04:55:38 -0400 Message-ID: <1492505735.2472.3.camel@sipsolutions.net> (sfid-20170418_105805_973108_07FD1D99) Subject: Re: [PATCH V2 02/10] nl80211: allow multiple active scheduled scan requests From: Johannes Berg To: Arend van Spriel Cc: linux-wireless Date: Tue, 18 Apr 2017 10:55:35 +0200 In-Reply-To: <1492505589.2472.2.camel@sipsolutions.net> (sfid-20170418_105344_247770_F670FA72) References: <1492085196-4574-1-git-send-email-arend.vanspriel@broadcom.com> <1492085196-4574-3-git-send-email-arend.vanspriel@broadcom.com> <1492505589.2472.2.camel@sipsolutions.net> (sfid-20170418_105344_247770_F670FA72) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: 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. johannes