From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9DC846D2DB for ; Thu, 20 Aug 2026 13:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787233406; cv=none; b=rAqdR3ZZwUtYsszjHjmaXo4mgjQ+ywHrBxcgvdNzTqz87lsD2+LS5iSnpFesXPXv2mdpQ+5CnCNx5xK1HXDJH3/yJf2ae2ZtJ9chs1koDzWsbU9NSs79QjC23mziFOuHMOHGscL3Bl9dIrJWU8EIeq5BbyDuQhhFaJozjnzfhrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787233406; c=relaxed/simple; bh=JpT07p7TuUSoEqSIy+I4EJbr2nbqkTD3Jr7hH1Z2VDk=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CMbnaZgf7sWI9q0lK6KW2i0DzPjeBlX0wOPbyVQhEPwbEBQdsA0pUUzvR0QICLFMQ/FXu9odDqm+OsP/rDlVGjGe0F144gmxPY9V4VSp1Qbz+lB/xVlrGNPHhfjELsG6OCQquQ1Woh/aLD+VEMO0SrXNG9ewDMRc6mHOx4IpD/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EKSsPHb5; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EKSsPHb5" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-ca88130e09aso1139954a12.3 for ; Thu, 20 Aug 2026 06:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787233402; x=1787838202; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to:content-type; bh=7hzWmEatSNCCp8M3qWDnR9FsvSVF0djGU28yHB5R7PE=; b=EKSsPHb5Nr3pv8yMZbQw0j20bWRvgcQB/Q70cMjnj1cBVr9GIeQ1uVCwClJXITWIDA LD6MrX2fFISK5UCW4OycoSJOV7s1FS23hnb+T+kSOXEPT5iQUJrUgwfTGCszqDVKz17u 4+GPih/m2pQLOFEr7Gl/LkoI1AKvNVsjAapwqEwXuxyPQ+ALcMnGed01KHOJxd58vBXj i74ZTv4EOi2eXb6KU8iHc3eMPEYQ4stOo+2QLepXc0arXZh8tFpu/wDizT1wyG3CNg/7 3ILWu3XrTXWOnH6oOxdx2m7tIy8WTpQh6vM3Z4ilxCrSenXodoudOQH1pQ2psLiaPh2n C0kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787233402; x=1787838202; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:to:from:date:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7hzWmEatSNCCp8M3qWDnR9FsvSVF0djGU28yHB5R7PE=; b=OVhfIT5GUTB2p8mI7RIZS7Kvzp4PMkiEzZMmhIC8DeurQkM8xGZ6E/3aLmzy5dt05k c0kjQfo8RdoALJ8upd7DChoGCJ5FyMGvBLXJ2Uz/WgNOTC7QXHlBpW9bHd1hsFewsEWk 2lEbLHrCeVYXkWt5OSbiECb9pkk/Nsgrulrjd3pqt+qZTaeKDD9QgU6MZ4j6r15lNSDg 6tb0fXxsFYefR0psFKJ5rO7/ZxVVlb2HQxlqxqXH+5oh2gIRAYQc/DpHegmycXQOGEs/ E2ecPBiejo1pfLAr2046Dx6kf3Mw6nE8DMuGx6/kIiHX4m8qXCq4dqZK2xwJfDv40Est YssQ== X-Forwarded-Encrypted: i=1; AHgh+Rot22D0mOELvc4m7u4hyWGus5lw9+nWuSPIqG4+d23uTB40G4IZpsPSZInfFHSnATLiknBF97mH7EJrbdY=@vger.kernel.org X-Gm-Message-State: AOJu0YwFt3ITUxJQLJJMmhLpKWqgz/wpkmQsmJT6f9eBMLMDAjvEHxWc u0+s+sATsRfK7mQUl1POAAzyBttT7FoT2p3N4Du6eOVNRAl+2czDUeFc X-Gm-Gg: AR+sD11pCD6JO0EZNTegDKyg3quKpdDjIdAdLNP2NGeNJAZRXRV3a04haV9c7gVL7SP sLAsl/yhrWqNkNbJ545k5kmglsQSDOHDgHF2WaPezw0+FbuOXgTqHYuTzmoVW2uY2MS8twNd1ME 6SSOxAZfMg6ZeA0mmLJLiMzXE9RXbBhH9Rop9nhSr9PJtKoJ/DEJ+GsNWbjyVNCbxyKW9zGm80h gIFsN+vs/eCxPseiGXeufMFERboRWJWLqBCmgPyxeMDXRefTBWLYVCUwcRtH+Cm58qB6Qbw7WrH nwq+f5ZF4R2QQxv7QKnedTLLNFj9RnC11H3MwAmp/DpJnNrFm+dppmrKfMyHFevqIKWT5Pz+MJe icxKYONyzHWkFGGD6zzgslcWIB4o26HPt0J2W8oEfL1cZFMa5sss9torRAdYEHaTby1x+PD0sQJ FflOQ01+GW9Xa4Ugivkf2W3uvkykT//kl75RFuDkOYdlKJxIKUrUIEiuidErDNxyb+IYjBl20Zo g== X-Received: by 2002:a05:6a21:9991:b0:3cc:3d08:da3e with SMTP id adf61e73a8af0-3cd00e0e43amr20711670637.2.1787233402074; Thu, 20 Aug 2026 06:43:22 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327c98ba384sm12480960eec.30.2026.08.20.06.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 06:43:21 -0700 (PDT) Sender: Guenter Roeck Date: Thu, 20 Aug 2026 06:43:20 -0700 From: Guenter Roeck To: Geert Uytterhoeven , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Michael Bommarito , linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] erofs: Fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS default logic Message-ID: References: <3d845134-9b75-40bd-b221-2bd35f98d425@roeck-us.net> 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: On Thu, Aug 20, 2026 at 09:10:25PM +0800, Gao Xiang wrote: > On Thu, Aug 20, 2026 at 05:51:08AM -0700, Guenter Roeck wrote: > > On Thu, Aug 20, 2026 at 12:00:23PM +0200, 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. > > > > > > > Absolutely agree. > > As I replied to Geert, unless there is a mandatory requirement > documented that "there is no point to make a Kconfig visible if there > is only one valid number". > I would call that common sense. Guenter > I tend to avoid making EROFS Kconfig visibility depend on arbitrary > architecture Kconfig options such as SMP or !SMP; SMP here is due to > some arches make NR_CPUS = 0 if !SMP, but it doesn't need to bother > users why a EROFS kconfig visibility has some relationship with an arch > kconfig. > > Thanks, > Gao Xiang