From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 699911A6812 for ; Tue, 7 Jul 2026 12:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783426812; cv=none; b=QVuCBDHNGRoEU7Ky8o+92V6t7xGuj42PMS4tpiQI+wrhCfQyypGOtr6cq1prBUqvohJtCACQrLPz4xUNdkp+X9j69D49eUSLfGagEN+ygEBpkPZraxeIJmbfE7zlyk8g59DCxb5L9zJamNfq+xwKNz0UyFpeyxHibDzxHbLUctA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783426812; c=relaxed/simple; bh=ifezPFhGYoNelcOH3U1dZjQJ8V5gn6WUNNA1XA2or/E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aJby5yw2N2DuZFIPF0AEnIyWzEtuuMCwannqomTy034EyJ7bhnDAnbQd+OFMgnBp5dV588lWie35aUssrJhQZgT7hnSTMHlXOVEt2a+WtjPVrwhCv6vqwWluxasYkcPf6ZW7RQFGPLO3Mvn2H7jBqKvVgWO+hBxPWb2cmw8ISFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=XT0LIpps; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XT0LIpps" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783426808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rhN5MH8GOIFz4l874l9YvZDUXe6m9ixfJ0EPwOGOECY=; b=XT0LIppscPK6ayPZ5DxgxRB4EyNwzKkrSmAeCVD7h0GamxeTv4ZvCaLK5SNBz0+ds0UeKG znR9f+vhXffaJcEY/rlZYAFQyLXVmgsI5DO9VOwIReNTseT9q20cCSS9jS1Vce3+d8HS5T 103ZZowqSbA/OregFeDnA1wb1RihUUw= From: Guopeng Zhang To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Guopeng Zhang Subject: [PATCH] blk-cgroup: fix blkg_rwstat_recursive_sum() locking kernel-doc Date: Tue, 7 Jul 2026 20:19:47 +0800 Message-ID: <20260707121947.1679701-1-guopeng.zhang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Guopeng Zhang blkg_rwstat_recursive_sum() now runs under RCU read-side protection: it warns if the RCU read lock is not held and no longer relies on the queue lock for online tests. Update the kernel-doc to match the code. Signed-off-by: Guopeng Zhang --- block/blk-cgroup-rwstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-cgroup-rwstat.c b/block/blk-cgroup-rwstat.c index aae910713814..20cbcbe064ac 100644 --- a/block/blk-cgroup-rwstat.c +++ b/block/blk-cgroup-rwstat.c @@ -88,8 +88,8 @@ EXPORT_SYMBOL_GPL(blkg_prfill_rwstat); * @sum: blkg_rwstat_sample structure containing the results * * Collect the blkg_rwstat specified by @blkg, @pol and @off and all its - * online descendants and their aux counts. The caller must be holding the - * queue lock for online tests. + * online descendants and their aux counts. The caller must hold the + * RCU read lock. * * If @pol is NULL, blkg_rwstat is at @off bytes into @blkg; otherwise, it * is at @off bytes into @blkg's blkg_policy_data of the policy. -- 2.43.0