Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp987723ybv; Wed, 19 Feb 2020 13:28:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwvPV0lylJNSeZIzva3byz5dGWBP0kBik6NW2PfCnaoX9gplbFa9dZcUdQIvXJ2rdNJ5q5b X-Received: by 2002:aca:5d57:: with SMTP id r84mr6029370oib.42.1582147685904; Wed, 19 Feb 2020 13:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582147685; cv=none; d=google.com; s=arc-20160816; b=r437uSz2EzIYKgGPX8fQK+gkmP7CQ/sxMDaiTIBEIujUcrPyDsUbQ+jjOwdkC2z6Sg oPMmhfPrAOzyUnbjoAAX0v+rkU3Z7PSmaFlLmsvgEPn+sO8MPz7lNCZM+gVaS+IXGvYc P4zk0M4PYJ7EamPEOCm+MYXCCzizHiaOIl4CbDLyf1QK3f+0ujRx9zNTqArjcmq7xq8b X1XyBdMA6Zh/Jp9kkkifqrM+HA0UKV/rfPw8SM2hkeXsor/S2kb1bNICpshjip5Sk8pr 6K3OnXYePsRYRPIS5H93fm9q9H+xRFusczErEKwMc8rSbvHehXkLot3z2adP6Mbspixk yibA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zgJNy1KN5aZ3jMvMKrXLxUkXUfdBKayzMP92yT7iHAE=; b=mBrNzK071TD0gLkftFEvnd2laeo69avGcOerpRth53/XOgOs46ceSVNcLFmU7k0Mte NcfTi7RbPZ2DPu/V3/z4NfMYY++6RtyFM3sGBtrA7X51MFX5NIDTmQVbgzpdYEYsJR4k BIpijmlJwAVSmln0K/iHLpl2TGJqwZyE8fBnN7GSy2Rr5VgRJdZLNaDbzRoTydJnctKl wS95RhwCGCyU61VdJfltqbWu0iCmn9i021rz1ZbOht4/5YSbZodXpMr4g83D37y6JU0K rpya5TKR6smGV0+yebTctzCnjpfxI5KNuXEkHIG/fqkpqL6o2OH+Xc2uHCFduWS9mlbF EMjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FGXmWU8b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t192si9690744oif.75.2020.02.19.13.27.53; Wed, 19 Feb 2020 13:28:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FGXmWU8b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727485AbgBSV1r (ORCPT + 99 others); Wed, 19 Feb 2020 16:27:47 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36845 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgBSV1r (ORCPT ); Wed, 19 Feb 2020 16:27:47 -0500 Received: by mail-wr1-f68.google.com with SMTP id z3so2296927wru.3 for ; Wed, 19 Feb 2020 13:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zgJNy1KN5aZ3jMvMKrXLxUkXUfdBKayzMP92yT7iHAE=; b=FGXmWU8bAD8kS9TpjALm6lTDIzKEM9meY5HeNSkKJPkzHzhg/k09WFkAsVEGRUyTBD J9UXjrhWBuyfw42dewC3J234eI7aSOqCqUAdKciYUisPy2wBTL6B6Yz/LbPzQQMMs2z7 7OEBSxlj6X/ESkBO5VcghYzI9VU3ifW+GihV8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zgJNy1KN5aZ3jMvMKrXLxUkXUfdBKayzMP92yT7iHAE=; b=pbrxKZvuESKYkXUqfyuIVySskUEoZ8aGNtbQx29gdq/3MK81LwlO74MRr+RBxix1UM DQRMMwBfumL5oi/mt366HNEqOM2DTdZZHxJMuIrs3NZ919qeD/ei0Lp79NL8zc/QIbwK icAqcTHg+mKJ70eIYEyhYATxY6aNxRnvcPkQU0bOWltIITf30lVwDfOnfJR9xeD3SA93 NIvLfl9iPUZ31XDYriOa5Tq3vIPfVAUAec772+CxIjYuT8hqUQejlO0dPHlRLczRYU1H 17FaAFT9jkUGequjpIlmYsWfpFFlCdu3ik49IkE0OZNinhDQDK/tyYrRLLnrAICLD8/e CqpA== X-Gm-Message-State: APjAAAVz0d8WZ71gZ420w2jhWUnWfOWgSV+Fldjd5PE9ij0op2JDbQ07 fqPa59/irTGPZE6G1J2NEOCg/g== X-Received: by 2002:adf:ea48:: with SMTP id j8mr40049378wrn.363.1582147665137; Wed, 19 Feb 2020 13:27:45 -0800 (PST) Received: from [192.168.178.129] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id f1sm1356611wro.85.2020.02.19.13.27.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Feb 2020 13:27:44 -0800 (PST) Subject: Re: [PATCH] cfg80211: Pass lockdep expression to RCU lists To: Johannes Berg , Amol Grover , "David S . Miller" , Jakub Kicinski Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Joel Fernandes , Madhuparna Bhowmik , "Paul E . McKenney" References: <20200219091102.10709-1-frextrite@gmail.com> From: Arend Van Spriel Message-ID: <407d6295-6990-4ef6-7d36-e08a942607c8@broadcom.com> Date: Wed, 19 Feb 2020 22:27:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/2020 10:13 AM, 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 :) Me neither ;-). Above you are removing the WARN_ON_ONCE() entirely. Would it not be good to keep the WARN_ON_ONCE() with only the !rcu_read_lock_held() check. Regards, Arend