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 D7E9D61FCE for ; Mon, 24 Aug 2026 00:43:25 +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=1787532206; cv=none; b=qiK4LT6h62iTy3bg27j3kvlonK2ioL04lzCyG0EyP74sekERWYnFZG4dpSwgemgyPHSu9IKavQ0E2x9SHLD9HZ2lkQFdcRvMEv+Cfm68hkSi0Gqmdiohvl2gjXumgsvRqoAo5HO4xkTv7r/hzXPWSntDWmuiIhCySqKw01opvSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787532206; c=relaxed/simple; bh=q+ugytwf4amJ+NGOXtlj52fcvcpApYCS1B2yYF31eYg=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=IPsfM3YJhGdvofVUl/EtNvYEVIrU+rxB4JRJ/r7xbxCREOerRxXASEuVM0t1MTzisRb93uZcrmNBEfo7fCJjK+v8iTgY0nAybwjlhod6vBLMl7qQt19MReqYzvPNWR+Wym3mYF9VdKPUaG4WVicO4fkip8EABbAueCCb7U6Tjj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IQ1likrG; 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="IQ1likrG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 328BC1F000E9; Mon, 24 Aug 2026 00:43:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787532205; bh=WdONH0C7Iil2+qdYRXoCAktbuDW0GcQ1KSpOSYK+ysY=; h=Date:Cc:Subject:To:References:From:In-Reply-To; b=IQ1likrGxzUrrHngXVaXm68hrNC8wtpKo6NWG9tVuplQamnuBBr5YDmMCNOp0Sy1c rE4t1FPWBd3bMyEazhd3qWR1RlXz+ujRN6nIE+kXUauj6MiQAiOK0aUH6E5Dtb0rEV 4WLIQFr+tvwv1iBntbjuolZgTpvQ9njVmvOjYvv51YSASRtgAIWNI6bzqovpN3159f CfHqlcb0luKt8N5LldCFOyXbrgD49HfiDxqcA42txpLabx/sBYEJ+V3nPEmZ9/v/2+ 0nlnoqLSZMj1r4u3Ckia/himA0yB2NtOzWjAIUcX9uBcvpT6SUj2uGI8blCWoUwG2X pLnrMMmL5ciwQ== Message-ID: Date: Mon, 24 Aug 2026 08:43:21 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] erofs: Fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS default logic To: Geert Uytterhoeven , Gao Xiang , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Michael Bommarito References: Content-Language: en-US From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/20/26 18:00, Geert Uytterhoeven wrote: > When NR_CPUS is less than 16, or when SMP is disabled, the default value > of 16 is invalid. > > While actual configuration picks up a sensible and valid default > (NR_CPUS or 1), "make savedefconfig" will still write a line like > > CONFIG_EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS=1 > > to the defconfig file, even if that matches the sensible default. > > Avoid needlessly enlarging the defconfig files, and reduce churn for > updating them, by specifying valid defaults depending on SMP and > NR_CPUS. > > While at it, make the prompt depend on SMP, as there is no point in > asking the user about the maximum number of decompression streams if > there is only one valid answer. > > Fixes: c9b47e6b23114e93 ("erofs: cap LZMA stream pool size") > Signed-off-by: Geert Uytterhoeven Reviewed-by: Chao Yu Thanks,