From mboxrd@z Thu Jan 1 00:00:00 1970 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 B91D131E85A for ; Tue, 21 Apr 2026 23:26:26 +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=1776813986; cv=none; b=TbeT0Xi/SclDCdygxzeyzzTctJhqwsNlF5YxAQ5vAIzvI+TWI0a+jmITlKTY9a06DemasvJHiPiOsPqQwgAVhMjnEVVq441ZvHhTNH/W9IlnyzjMNrcEZiC1UajMUlXf8V9AAsdQO51vuSRJe2vZPGjGAaVmvT+Tsb8FWBDRPqQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776813986; c=relaxed/simple; bh=/let+R26XmDoHPbQeUMhH4onx0DaQ8ZuXi5VStvneik=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VAs5fOOciFOlBL9GR6JYloe9HYei2+gU+vI/1l+MRZLsSQYIPVudSN+IFUqX7Dwen6BbGmWXwx18HK7D+gGHVpjaPkHpxqmUGyLY9V93J3jPcWPA9pCx5Np3T6VKmiTsA3C5TdOCjsvkY0GimkGW/fgMvXa2Bg8T6JXcBZtdbsM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T6RLxjiS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T6RLxjiS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EF70C2BCB0; Tue, 21 Apr 2026 23:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776813986; bh=/let+R26XmDoHPbQeUMhH4onx0DaQ8ZuXi5VStvneik=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T6RLxjiS4o6mjnOCVvD4kMntKjEJOCJSOR1JKi4YoU6DfFE4cBpr0+umxWHiEzO8U 7oaCcoTHU+TfRcSC4vqI86VffL3oZcXhodcB7zgLkmxdmxEfa0BUM89/b2FkWNLpY1 sLBO+4MUONxrbuqjhMwua7meya1xHf6vgEioxbqY4tiU3lzsi/cB0OqL55DUx/MKAQ vuYUVx5zTyHiZoOeQwZw8KiWvsHHUx0zCbvUx7Lz4yayLmTcL9XsDamnMzgAM/VIvZ vMo9GsTxVDb0MogpB0D42zJ7SDnTkv1bAoBgOG0dgolerIxM7G0X6x9nWdhPTH1S2y HusNDsV6E19HA== Date: Tue, 21 Apr 2026 16:26:24 -0700 From: Dennis Zhou To: Joonwon Kang Cc: dennis@kernel.org, tj@kernel.org, cl@gentwo.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dodam@google.com Subject: Re: [PATCH v3 1/3] percpu: Fix wrong chunk hints update Message-ID: References: <20260410174417.1450834-1-joonwonkang@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260410174417.1450834-1-joonwonkang@google.com> Hello, On Fri, Apr 10, 2026 at 05:44:15PM +0000, Joonwon Kang wrote: > Chunk end offset was set to a block end offset, which could prevent > chunk hints from being updated correctly. It was observed that the chunk > free size gets minus or shorter than the actual free size due to this. > This commit fixes it. > > Signed-off-by: Joonwon Kang > --- > v3: Initial version. > > mm/percpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/percpu.c b/mm/percpu.c > index 81462ce5866e..3ecd86096641 100644 > --- a/mm/percpu.c > +++ b/mm/percpu.c > @@ -1054,7 +1054,7 @@ static void pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, > else > pcpu_block_update(&chunk->chunk_md, > pcpu_block_off_to_off(s_index, start), > - end); > + pcpu_block_off_to_off(e_index, end)); > } This needs a fixes tag for: Fixes: 92c14cab4326 ("percpu: convert chunk hints to be based on pcpu_block_md") Reviewed-by: Dennis Zhou Thanks, Dennis > > /** > -- > 2.53.0.1213.gd9a14994de-goog >