From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4C04B426D03 for ; Wed, 12 Aug 2026 14:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786544500; cv=none; b=rKMpHrlng4PtjAcluLvWhmr22MSbtMPTvs2RelcJVs25gsDHyM+Y7UYERoteGrlvh0awVb5lhsluNy+wzAEyRhgkTNP1xEHbn1QBgGty8aZxRAh3hTwv03DsnZhvFSrjLN5ovzbw2OlSnqks14G3GetGMjUFwVpj3WcuncnZ6RM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786544500; c=relaxed/simple; bh=Gr/Q8FFg3No+RkoFMeQGFUaVTfZpY7sV1UvoMvYOwxE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M3kfTCrZatkkSp5rTfc+PMOqBpzyZbW+XC12GlivPZB+6+kycacL5gmBXfDQnpiYbrls6GBqIyWR65qBeb4vrTC87q8VfPcNLM6ifEqnKEr8TWSRUd4pT5AHNJBiypP+FzcdPV9MWdGaGG5//RiRGTvCoOExAyR/U7WViNw5Aa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Efhanhoc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Efhanhoc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71F991F000E9; Wed, 12 Aug 2026 14:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786544497; bh=a7uHO+cls4zicW3uCaFv9/XNqct5VHTMhLbXkR3nur0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Efhanhocax+0BjDxsAvm5/zpWalMWJn9FmC/Vd1Q2qp3EztLaT+JXFwig25RvLV27 YlaM8vxIlV407KATsZg7kEq4pW6E5uLGh8z9M1TMOo6g9WmP4mSJ/kioxxvB+3nuOi YIUunDYhs1LU+V7sLJ7JMRUtyJMN5zwjpQ+sRrzdzYAoh2OHmto1WdMzN06nd+Yv0g DHgStv0atUzA3Eu9vQzHM2B1WWFyVRtMCxhmhhlO55ZC7/4QA06dV+k729Ro6g+HdM zxdf4MDkusWMZJFGGpTPrIglqqIYK+dP1sk9ceDBIuNGOu4XMDl/6rpreuc5PPPnvH IeEMSGcRDQ08A== From: SJ Park To: Gao Xiang Cc: SJ Park , Linus Torvalds , linux-erofs@lists.ozlabs.org, LKML , Guenter Roeck , Geert Uytterhoeven Subject: Re: [PATCH] erofs: fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS on some UP platforms Date: Wed, 12 Aug 2026 07:21:29 -0700 Message-ID: <20260812142130.124832-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260812131144.30802-1-xiang@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 12 Aug 2026 21:11:43 +0800 Gao Xiang wrote: > CONFIG_NR_CPUS doesn't define on some UP platforms (e.g. arm), so this > can cause make oldconfig to loop indefinitely when CONFIG_SMP=n: > > $ make ARCH=arm allmodconfig > $ sed -i "/CONFIG_SMP=y/d" .config > $ sed -i "/CONFIG_EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS.*/d" .config > > EROFS LZMA default maximum decompression streams (EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS) [0] (NEW) > EROFS LZMA default maximum decompression streams (EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS) [0] (NEW) > ... > > Let's guard NR_CPUS with SMP instead of using a hardcoded arbitrary CPU > uplimit here, similar to commit a3344078101c ("mm: make SPLIT_PTE_PTLOCKS > depend on SMP"). > > The initial report from SJ Park was for m68k [1] (m68k is the only arch > without NR_CPUS in Kconfig), and it will be changed in another patch [2]. Thank you for this patch. I confirmed this fixes the issue on my setup. > > [1] https://lore.kernel.org/all/anuyFHLUGDjZWY4K@XiangdeMacBook-Pro.local/T/#u > [2] https://lore.kernel.org/r/20260731094950.1988084-2-ukleinek@kernel.org > > Reported-by: SJ Park > Closes: https://lore.kernel.org/r/20260728065447.91511-1-sj@kernel.org > Reported-by: Guenter Roeck > Closes: https://lore.kernel.org/r/87853c96-cc8f-49e6-81b1-02bfe409e372@roeck-us.net > Fixes: c9b47e6b2311 ("erofs: cap LZMA stream pool size") > Cc: Geert Uytterhoeven > Signed-off-by: Gao Xiang Tested-by: SJ Park Thanks, SJ [...]