Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2825723rdh; Mon, 30 Oct 2023 08:43:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWz0v4EynLIhseVWLCgKvjBfCLM6hu68IuwLA5nq3mHMZYTTmYxotLbyHgMHPc7voGXhMV X-Received: by 2002:a05:6a00:148c:b0:693:43b5:aaf3 with SMTP id v12-20020a056a00148c00b0069343b5aaf3mr13383103pfu.13.1698680637634; Mon, 30 Oct 2023 08:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698680637; cv=none; d=google.com; s=arc-20160816; b=WoX0V/fxUWAE3o28VWpxxQ/7eoBR3f1l9lztlXiuv4DIq4xmSQ+V1e1c5SF5+E1FZ8 lxQX4CBRUjC9FsLOTLdFR53O1vajH4LlOn4W6IupkOHPnwB43jJ0YiI3s7We+0W/y+vO 9DfC98gctKflgf0YuxhoEW6844vlgZjZcPz6Ua+JylyVQwzvaYUrVaSjNRanUCLHw5b2 oJWqPKS4bu64o5M0SyJ17zVzQWY+cvyzamLoZQK5DESQ3kgL/9YVccbx9j7hz/DQoMqA 4S5ojZ8SlMUYsegc136rOLncRsI0PNBqHqTbkNYkymlRdau3fpFm6SD1LJjZeuxpVT8e dWZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=kb5dInqFi1WiWGHrGiS7ETJib+al/KZkoA604qg/qtM=; fh=4A1c5sqIOwHhOdbKPyH87xHwZAjvyMjO3B9A+L03njQ=; b=0muQ7nOMNlg63s0jWN9rOhvCWFDR7MLOqQNbG0bK3bDrM5Gz/YR6piE9LxVA/1VvJs Zy9BgYQ9CUwbNOf0nGQasBNivEigO8HdxVXnS0spE+rAcK3/mtVjbA7yyHsL1ffzlT/c 2F5Ov/sLR0mOd7ZM3z1o5TQipXB8AEkS/DEHu4Ez0uozZKdbO8Id7cyg3HbgwMprJF9E 44f+jLP5uBDorhiJnApgShE9+eOf+kkdmvB5kaF6ynv7slOk5QLOjV1yYK6EoZsRemOG XY2S97wfcDlJsjL6xTh2duror2Xt9sm5uGJ9ichokkFtJzDvrrfNFJhnRQEW51tsbRL1 dfNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bz36-20020a056a02062400b005b975375d70si2940782pgb.331.2023.10.30.08.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 08:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 07925806886F; Mon, 30 Oct 2023 08:43:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233509AbjJ3Pnu (ORCPT + 99 others); Mon, 30 Oct 2023 11:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233621AbjJ3Pnt (ORCPT ); Mon, 30 Oct 2023 11:43:49 -0400 X-Greylist: delayed 165 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 30 Oct 2023 08:43:46 PDT Received: from p3plwbeout16-03.prod.phx3.secureserver.net (p3plsmtp16-03-2.prod.phx3.secureserver.net [173.201.193.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 879A3C5 for ; Mon, 30 Oct 2023 08:43:46 -0700 (PDT) Received: from mailex.mailcore.me ([94.136.40.145]) by :WBEOUT: with ESMTP id xUNvqEcsEa122xUNwqv52s; Mon, 30 Oct 2023 08:41:00 -0700 X-CMAE-Analysis: v=2.4 cv=M96Ilw8s c=1 sm=1 tr=0 ts=653fce8c a=7e6w4QD8YWtpVJ/7+iiidw==:117 a=84ok6UeoqCVsigPHarzEiQ==:17 a=ggZhUymU-5wA:10 a=IkcTkHD0fZMA:10 a=bhdUkHdE2iEA:10 a=AUd_NHdVAAAA:8 a=FXvPX3liAAAA:8 a=sbCGcgdyxKFDu1RXnnQA:9 a=QEXdDO2ut3YA:10 a=UObqyxdv-6Yh2QiB9mM_:22 X-SECURESERVER-ACCT: phillip@squashfs.org.uk X-SID: xUNvqEcsEa122 Received: from 82-69-79-175.dsl.in-addr.zen.co.uk ([82.69.79.175] helo=[192.168.178.90]) by smtp13.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1qxUNv-000365-7P; Mon, 30 Oct 2023 15:40:59 +0000 Message-ID: <46d308b2-5e59-862d-b429-e6ee418bc61e@squashfs.org.uk> Date: Mon, 30 Oct 2023 15:40:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2] docs: filesystems: document the squashfs specific mount options To: Ariel Miculas Cc: linux-doc@vger.kernel.org, Andrew Morton , serge@hallyn.com, Jonathan Corbet , linux-kernel@vger.kernel.org References: <20231029161924.50648-1-amiculas@cisco.com> From: Phillip Lougher In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailcore-Auth: 439999529 X-Mailcore-Domain: 1394945 X-123-reg-Authenticated: phillip@squashfs.org.uk X-Originating-IP: 82.69.79.175 X-CMAE-Envelope: MS4xfMeHZc0FBkxvO9LGjmWOEuppPia+lXkF5ccS+1CuDXuGy1obqdBSbw96wuG/B6E1W0LDjmj5t0vE6j6/wi55tk8NoEZcpHLX3jBjQmnRWAO8q1QSozeu +yfAy2I8gCFCCQ3zyuDv/5eUBpFYSI+0Rzsmf0j/5LftRGmrpOYoNVcV5a+TgRam8SekZ2alFnu1fXdCAbkcPZHjoVCdy20u+do4+ivqculcwBnzhxkSf3sZ WEvnfiZvvo3FU5Qh8nYTqw== X-Spam-Status: No, score=-5.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 08:43:55 -0700 (PDT) On 30/10/2023 12:57, Ariel Miculas wrote: > On 23/10/29 08:33PM, Phillip Lougher wrote: >> On 29/10/2023 16:19, Ariel Miculas wrote: >>> When SQUASHFS_CHOICE_DECOMP_BY_MOUNT is set, the "threads" mount option >>> can be used to specify the decompression mode: single-threaded, >>> multi-threaded, percpu or the number of threads used for decompression. >>> When SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set and >>> SQUASHFS_DECOMP_MULTI is set, the "threads" option can also be used to >>> specify the number of threads used for decompression. This mount option >>> is only mentioned in fs/squashfs/Kconfig, which makes it difficult to >>> find. >>> >>> Another mount option available is "errors", which can be configured to >>> panic the kernel when squashfs errors are encountered. >>> >>> Add both these options to the squashfs documentation, making them more >>> noticeable. >>> >>> Signed-off-by: Ariel Miculas >> >> Looks good to me. >> >> Reviewed-by: Phillip Lougher > > Unfortunately, it seems this is not quite correct either: > There is the config option SQUASHFS_MOUNT_DECOMP_THREADS: > ``` > bool "Add the mount parameter 'threads=' for squashfs" > depends on SQUASHFS > depends on SQUASHFS_DECOMP_MULTI > default n > help > Use threads= to set the decompression parallel mode and the number of threads. > If SQUASHFS_CHOICE_DECOMP_BY_MOUNT=y > threads= > else > threads=<2|3|...> > The upper limit is num_online_cpus() * 2. > ``` > that depends on SQUASHFS_DECOMP_MULTI. > So I think I should take my v1 patch and specify that the "threads=" > mount option depends on SQUASHFS_MOUNT_DECOMP_THREADS. There's no need > to specify SQUASHFS_DECOMP_MULTI, because SQUASHFS_MOUNT_DECOMP_THREADS > already depends on it. Sorry, you have to specify SQUASHFS_DECOMP_MULTI to be able to specify SQUASHFS_MOUNT_DECOMP_THREADS if SQUASHFS_DECOMP_BY_MOUNT is unselected. Just try it, do make menuconfig, ensure SQUASHFS_CHOICE_DECOMP_BY_MOUNT is unselected, select Single threaded decompression and you won't be able to specify SQUASHFS_MOUNT_DECOMP_THREADS. That was the point of my review. What bit don't you understand? Phillip > What do you think? > > Regards, > Ariel >