Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7779186ybl; Thu, 16 Jan 2020 05:32:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxfgJueilcLltiQHUixgsr55ubQ7qXAERdKEaQa1M8OLGVhGlX6+lR2wxWwuILEAnuiFGCD X-Received: by 2002:aca:d6c4:: with SMTP id n187mr4057351oig.29.1579181579309; Thu, 16 Jan 2020 05:32:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579181579; cv=none; d=google.com; s=arc-20160816; b=JulF+7xvLchn24iphSMcug5Xsgc4xmYVsfB9w8L1ZCFmbEqPDcHdVQpp6+RaSL3/Bv 6VnAKRzynH/Mz5AxawjxF5II0Y2iEFzAnGFmyDu8T08t4Fj3mUr08Y+G+IsLEfdWRx6D B4EKhq2mF+CF0JzqKT4Hey6+QKFpGk/Uk6kZH5/IKaZ/C19ChUQVTVe9Zc+lpan0l9LE 1D9Xhzt2Kg+e3/QfJuG4nfAN7UhCVZe/d9838IzS52WUjy//qT6NY+HnwbfSwtj20BTx AeX/K81fUuEF2hD5ZtUoRZBeaXe+QII4j5s7rTqSh8wFG3ANRtHTiE9kmkSpcwGw0dHR eVEw== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=yj1GQEmw8D8fLs7QdSZu1fhX4K/08OaRo3OsWkCTf8Y=; b=XDHddh99IA4AKxHuUzS6J/K1WsOeazraPDrNLgotJGfTYzYxoMQVKlIX0Z1hpAGO3I ydSqm65N1qroFDWuv4dPGIKftKQu6yzqr5ekISTjU5XbzOi9VGeo8saG2d4h8X94n8hR JUiU8yB3Q+/bSHS/P3wDKjfZzmjOQrSPV/F8JgDGsmQtQvZwXtG0vm6Dg07DrFC9eHLc +rOPEZ3ogXPzIlIp/aDr+fq3Jjqh8INjZQrvTtDbMR8BnIemtJEvxcnjwPhWEKmJpvtv JlC8sVJydLlM32NyMk/58W4jn9X1pQuSY2Du3s5fyZoNhFTDXEQtbmasl7ZqiktXjtlu XySw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si14078389otv.149.2020.01.16.05.32.47; Thu, 16 Jan 2020 05:32:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729159AbgAPNbS (ORCPT + 99 others); Thu, 16 Jan 2020 08:31:18 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:38646 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbgAPNbR (ORCPT ); Thu, 16 Jan 2020 08:31:17 -0500 Received: from localhost (82-95-191-104.ip.xs4all.nl [82.95.191.104]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5922915B6A351; Thu, 16 Jan 2020 05:31:14 -0800 (PST) Date: Thu, 16 Jan 2020 05:31:07 -0800 (PST) Message-Id: <20200116.053107.2118682332070479073.davem@davemloft.net> To: madhuparnabhowmik04@gmail.com Cc: gregkh@linuxfoundation.org, paulmck@kernel.org, joel@joelfernandes.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, frextrite@gmail.com Subject: Re: [PATCH] net: wan: lapbether.c: Use built-in RCU list checking From: David Miller In-Reply-To: <20200115114101.13068-1-madhuparnabhowmik04@gmail.com> References: <20200115114101.13068-1-madhuparnabhowmik04@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 16 Jan 2020 05:31:16 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: madhuparnabhowmik04@gmail.com Date: Wed, 15 Jan 2020 17:11:01 +0530 > From: Madhuparna Bhowmik > > The only callers of the function lapbeth_get_x25_dev() > are lapbeth_rcv() and lapbeth_device_event(). > > lapbeth_rcv() uses rcu_read_lock() whereas lapbeth_device_event() > is called with RTNL held (As mentioned in the comments). > > Therefore, pass lockdep_rtnl_is_held() as cond argument in > list_for_each_entry_rcu(); > > Signed-off-by: Madhuparna Bhowmik Applied.