Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3770343rwi; Sun, 16 Oct 2022 18:11:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4NBSkDw3C6+I9XuyN7pgAIWHbHgMJRldCXW2lr3VbF0jESfXS6RgUqe45YYmrz7hptX6AW X-Received: by 2002:a17:906:9753:b0:787:8e6a:103c with SMTP id o19-20020a170906975300b007878e6a103cmr7015204ejy.337.1665969114781; Sun, 16 Oct 2022 18:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665969114; cv=none; d=google.com; s=arc-20160816; b=ydFu+Ac2D4uYn0J6pEsGz5VsOG5ddDT+y2VOI7db6xvMocizW4H0aeEneP31Ro7HS4 zDinwZQASe/E8Vo1xtlvW/nAP0TOy/CwTi62CL83gEmG0iuDk2T1pnv6IVz7t7cWRakK pvN5BiOtgUXOk+NurCuW9kucqLvvHpDWRTFHmXvOZEsrcdpJ1yBszlRDcSwz3aDA3cm+ UF7WVIKwCVOyvSsR2NYX7Dz37/OTczP0sIoBUApmX2QNgpk1hQUR0U23ybrB5qcu0KhF QJB9yDVldH8tDy/vAVuR81qUg+Rh71IvRzg9ZX0ou+YL9LBmBVrB619PunQ2Sm+WNcCU 9qEA== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=1bHuJwlXn2WycfhVy9QrbJz1DrXg1x2EkIVTon86cWg=; b=sEmuraWj1RPkH8IXY94zL6l2nxO18Ina1KkfZPEvaFVYPE+LH4DbtHCtyhBzHxsKsn 25TBl/urCvXiBaYN1hAy1jEZvo536qeWBo2UAAxtHKx0dK8zQInGMTmydh/cE4ROhw1K dGVek7If+B1UiXQpyXj1DqBRjAlkNdN+1HZBF5UBmKr0dyoujYkgjkQhCjCk0jOe2Io1 cqBJ9uCyudJVtHsrdsFEwCaEPhBRHRK+MLx+Q1skvz8Kxk6e+C8WNbgixEWi7ZrTLdV9 1BriblMhS2AAdx6Wj8fybDNtUh4OM4XxiL+n/L7oWhRnEP4In8W1by26ApcV7AOusTQ0 Xhdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr8-20020a170907720800b00781b6ce15e1si8734315ejc.101.2022.10.16.18.11.29; Sun, 16 Oct 2022 18:11:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbiJQA5R (ORCPT + 99 others); Sun, 16 Oct 2022 20:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiJQA5Q (ORCPT ); Sun, 16 Oct 2022 20:57:16 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD783EA55 for ; Sun, 16 Oct 2022 17:57:12 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MrJPJ5TM6zVj2d; Mon, 17 Oct 2022 08:52:36 +0800 (CST) Received: from [10.67.110.83] (10.67.110.83) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 17 Oct 2022 08:57:10 +0800 Subject: ping// Re: [PATCH v5 0/2] squashfs: Add the mount parameter "threads=" To: , CC: , , , References: <20220916083604.33408-1-nixiaoming@huawei.com> <20220930091406.50869-1-nixiaoming@huawei.com> From: Xiaoming Ni Message-ID: <910e5533-4abc-85f1-6bfc-4d776f8bed7b@huawei.com> Date: Mon, 17 Oct 2022 08:57:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 MIME-Version: 1.0 In-Reply-To: <20220930091406.50869-1-nixiaoming@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.83] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping On 2022/9/30 17:14, Xiaoming Ni wrote: > Currently, Squashfs supports multiple decompressor parallel modes. However, this > mode can be configured only during kernel building and does not support flexible > selection during runtime. > > In the current patch set, the mount parameter "threads=" is added to allow users > to select the parallel decompressor mode and configure the number of decompressors > when mounting a file system. > > "threads=" > The upper limit is num_online_cpus() * 2. > > v5: fix a low-level mistake in patching: > fs/squashfs/super.c:492:7: warning: "CONFIG_SQUASHFS_DECOMP_MULTI" is > not defined, evaluates to 0 [-Wundef] > > v4: https://lore.kernel.org/lkml/20220916083604.33408-1-nixiaoming@huawei.com/ > Based on Philip Lougher's suggestion, make the following updates: > 1. Use static modifiers to avoid changing symbol names. > 2. Fixed some formatting issues > > v3: https://lore.kernel.org/lkml/20220902094855.22666-1-nixiaoming@huawei.com/ > Based on Philip Lougher's suggestion, make the following updates: > 1. The default configuration is the same as that before the patch installation. > 2. Compile the three decompression modes when the new configuration is enabled. > 3. "threads=1" supports only the SQUASHFS_DECOMP_SINGLE mode. > > v2: https://lore.kernel.org/lkml/20220816010052.15764-1-nixiaoming@huawei.com/ > fix warning: sparse: incorrect type in initializer (different address spaces) > Reported-by: kernel test robot > > v1: https://lore.kernel.org/lkml/20220815031100.75243-1-nixiaoming@huawei.com/ > > Xiaoming Ni (2): > squashfs: add the mount parameter theads= > squashfs: Allows users to configure the number of decompression > threads > > fs/squashfs/Kconfig | 51 ++++++++++++++++-- > fs/squashfs/block.c | 2 +- > fs/squashfs/decompressor.c | 2 +- > fs/squashfs/decompressor_multi.c | 20 ++++--- > fs/squashfs/decompressor_multi_percpu.c | 23 +++++--- > fs/squashfs/decompressor_single.c | 15 ++++-- > fs/squashfs/squashfs.h | 23 ++++++-- > fs/squashfs/squashfs_fs_sb.h | 4 +- > fs/squashfs/super.c | 93 +++++++++++++++++++++++++++++++-- > 9 files changed, 199 insertions(+), 34 deletions(-) >