Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp547971lqp; Tue, 11 Jun 2024 11:53:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzW4F/Rd90XcNP7XFHAp5K7zS0dDPnapblavxVZUjws8ndhaoaqiOYf5jDJocH4/L+6aM0Fa/EExEzokE7irgAKBZoHvvHIWBqqdLxig== X-Google-Smtp-Source: AGHT+IE9Ck8wLBkXlzQkZnLYF3aDisu5cTcK4fpxcqxLtz2XX0arIh2mJrvhZ9PBoA31So64/kGL X-Received: by 2002:a17:90a:1116:b0:2c2:749:29a3 with SMTP id 98e67ed59e1d1-2c2bcac9732mr12351939a91.12.1718132032241; Tue, 11 Jun 2024 11:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718132032; cv=pass; d=google.com; s=arc-20160816; b=KfsC3XMMUHVkk/peyizid5fUAvUtIEv0rKlmlAE07BjVzZJMeo3dWP+5VSxU1oEYLu jNyF/Nd4qIvP3vQfANM1d3+8TDPa5eTZoUAn0RZGEB/kvuT/Q4wGy0T6Oo6v0OiAawST SQCkQid59VAVpDi5HRzJP7XY5/qGS2nKdltgrSfvIkSOVgXGO/Rj7w+02PnssLeJ5akj cpQZcCC0/jEYhtkGBbtcLqNI1RI+NSLpDn5j4b6ZfU6Qtf6msMU2UBLQ9uQOiny4nYxZ yMO7yTzc60b7YH8qxKtDHcuqYWIPrQl+5m98KQkrLm3nfxgB6JT2jBBWdQ8jnKf7ZgY9 CfBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Z3gCeQfTk5TcAJce0FcL8M27hH7lAvd2KnpcdsVitKM=; fh=tPHBA95q4A2JsKJMw3mMqQ5Xsp/Qmg3wcY5CiIlDe3k=; b=Z/nYp/l9kSDUt5djg8xmz0vyG5bDpkIpFGJdMEVRn9+8g3aLqlNzP9+c8sHVP5cvLB t3S9G1HF7O2X8u/QKGRccyIwbZ5vhzJ94o01twbCSCNiW5fHiUGoyLROWXO+SlWzqe6+ rxybFc/Jb6UoNt+f/5GUfH0l7oWXdxta13hgwX+3qM1gU9q7oDf+o7PxaUjnbQccHU+u ubuWb/xKq7Jriztdf58/Y0fPs1U0sA/TvIAvrmzEkUlwZBOdcTcDdP+RjAthZog6dfkK JV8pSiau9ZniZHLTObGA2+ChCQeLoK+6mFcX9YceMZV5sxPnpCcXpuj+xujzYhQXzigs PJfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kWC855Mm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d1133bd1si7072794a91.129.2024.06.11.11.53.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kWC855Mm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E6BAEB253F2 for ; Tue, 11 Jun 2024 18:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37DFF4F606; Tue, 11 Jun 2024 18:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kWC855Mm" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11F294D8BB for ; Tue, 11 Jun 2024 18:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131218; cv=none; b=Agjh9bmVs8svoGewU3WmjnM/bmKLqqL6q0INE6HriyyjogDkEZnPAsYKQPRPOiVmvz9Ra0n2BrGOrg0dCkVABPofBdGDN2EsBR1yyE/lEwq4A99j5RM7QZ/HhL7LueAlr96UWeGhSuATMD1Yyyca52CwLiTSDrI037/Wg22KHQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131218; c=relaxed/simple; bh=xjTNil0Z8c2KFdRC6UT5suVh0Knn5BS56cRAY4d+jRA=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=uyo1sc7zh09isBkcHSMNIlthR6+CvEbhtBn4X0BEghxBE6IQAE4fuBeZUEt28zKZvSMK8BoTJD4lJay1AblKf3QiAsAU/gC/HjduvYuod2cm3OEfP081lawvwRBxot7EenF/7CcsYYr/r72cuZejIEe99dTVTiA4CbxK2bFpGdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kWC855Mm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC012C2BD10; Tue, 11 Jun 2024 18:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718131217; bh=xjTNil0Z8c2KFdRC6UT5suVh0Knn5BS56cRAY4d+jRA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=kWC855MmxrZtEDuowAvxiHCaXOT1uTVXJpuTsZw1Q6HhENnxjr9RDVwbPiOjRMPqI 2vI+whnth/Zj97IDVAJQ8EzMKtWhnds1B1uZHhWtIVb9kinD+3e/y9D+nw1EaOp+DR 9La6PbqTp1yLeYiOXuOvC0Q0nOL8kVnCI2QaffKCYTBw9luwdMAldb+iGfyIchhMXc dgirZkpfpGLZ+nn71+kbHaQXFP8Am9/lxnhSw6Ugm0nH9eW15Z6ejkcobJOvNFBuwK N2f1LpiLPlfgxzPE8fQ+WJOIzPKfOKT3ltHS7GDVOSMJbW5HI2YSgbm2Tl6RRgojA2 nsMLaOkmTkUJQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath11k: fix RCU documentation in ath11k_mac_op_ipv6_changed() From: Kalle Valo In-Reply-To: <20240531022411.6543-1-quic_bqiang@quicinc.com> References: <20240531022411.6543-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171813121489.3564613.14982279115447611746.kvalo@kernel.org> Date: Tue, 11 Jun 2024 18:40:16 +0000 (UTC) Baochen Qiang wrote: > Current documentation on RCU in ath11k_mac_op_ipv6_changed() says: > > /* Note: read_lock_bh() calls rcu_read_lock() */ > read_lock_bh(&idev->lock); > > This is wrong because without enabling CONFIG_PREEMPT_RT > rcu_read_lock() is not called by read_lock_bh(). The reason > why current code works even in a CONFIG_PREEMPT_RT=n kernel > is because atomic_notifier_call_chain() already does that for > us, see: > > int atomic_notifier_call_chain() > { > ... > rcu_read_lock(); > ret = notifier_call_chain(&nh->head, val, v, -1, NULL); > rcu_read_unlock(); > ... > } > > and backtrace: > > ath11k_mac_op_ipv6_changed > ieee80211_ifa6_changed > notifier_call_chain > atomic_notifier_call_chain > > So update the comment to make it correct. > > This is found during code review, compile tested only. > > Fixes: feafe59c8975 ("wifi: ath11k: use RCU when accessing struct inet6_dev::ac_list") > Signed-off-by: Baochen Qiang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 53d7c99719e2 wifi: ath11k: fix RCU documentation in ath11k_mac_op_ipv6_changed() -- https://patchwork.kernel.org/project/linux-wireless/patch/20240531022411.6543-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches