lkml.org 
[lkml]   [2020]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cfg80211: Pass lockdep expression to RCU lists
On Wed, Feb 19, 2020 at 10:13:36AM +0100, Johannes Berg wrote:
> On Wed, 2020-02-19 at 14:41 +0530, Amol Grover wrote:
> >
> > - WARN_ON_ONCE(!rcu_read_lock_held() && !lockdep_rtnl_is_held());
> > -
> > - list_for_each_entry_rcu(pos, &rdev->sched_scan_req_list, list) {
> > + list_for_each_entry_rcu(pos, &rdev->sched_scan_req_list, list,
> > + lockdep_rtnl_is_held()) {
>
> Huh, I didn't even know you _could_ do that :)

It is a fairly recent addition, courtesy of Joel Fernandes. ;-)

Thanx, Paul

\
 
 \ /
  Last update: 2020-02-19 13:47    [W:0.055 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site