Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3259354rwb; Mon, 15 Aug 2022 22:33:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XxmVDHpwI2xHocIahiIuEoUL0rKXZqlUe0A9jxuYVlrXcPr+AvgSKnOuTFlAnwHRSE1q0 X-Received: by 2002:a62:6446:0:b0:532:3d30:cf3c with SMTP id y67-20020a626446000000b005323d30cf3cmr19378467pfb.72.1660627985819; Mon, 15 Aug 2022 22:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627985; cv=none; d=google.com; s=arc-20160816; b=zF5H+Yz5LzEAPCm/MlAZYdJE6DAJBed/oR6vk5vhJ1hkcvu8PAJjicK+9vKS0xwMX0 Hr91rbZtVUg5WAR3Pgb9iy7tCuOxx44Vyp7Uc276B+PlrCjpq5JNT5afzkbEdSKI0Ziz VBuQpgh9CvI9dXAMTsVARZEe00rbhBO2D8XiAVEYv6yySGIThqVjybd0iCQrN4+n10D1 z3OperjHyis6m9wy9mdbhM9bytx8oFXcHUyq5B9VAlOUUV3LzHPXD0z4tLEimCCza0Qy 1Hfo5ndjdcJ0bVIDBmio74DK5rjGkq0Drdyk1geg3gDpJtdSNsgQsCt0OgvB0tYbouYZ VwSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=B4OXWfVIZG2dtH8H+L3hTneWnqkh/hdfP/1T0gDFY1k=; b=vXZWbHGfBzp4z78xoP8BXh7bfkUg1fytyW+SzB49SCPxP+n7FySQimGAsnDRDIEm/z iX8zoApmCKf0PxSRiLG3bnNCS/HSazhSi2cWYLfMxIFNNtzSQxOMDTYc0JykIUoyR9on PTajroyo6ILZ35lgF0VAJXecxz7Iu7PlxHqkWhzHr2OeBbjcq11doelXNDRN29UeJ16D FaBPa8CbH2x2NzTQ6Tv4H/TagjMhMt3drfSBZPOncRQdz2tg5KRh9Z4pnEtkgxaN9yEN VSvshq3gRvcIOKcdOmoCkWt6t3veB9yycaq9gAkRj1IfJur0LxkoFm9GoxSQ7mOY+Noz lHhQ== 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 l71-20020a63884a000000b003fc3e715428si18524pgd.342.2022.08.15.22.32.55; Mon, 15 Aug 2022 22:33:05 -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 S229753AbiHPEYU (ORCPT + 99 others); Tue, 16 Aug 2022 00:24:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbiHPEYA (ORCPT ); Tue, 16 Aug 2022 00:24:00 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCFDB1A4001 for ; Mon, 15 Aug 2022 18:00:57 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M6CRg5klSzkWPg; Tue, 16 Aug 2022 08:57:35 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) 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.24; Tue, 16 Aug 2022 09:00:54 +0800 From: Xiaoming Ni To: , CC: , , , , , Subject: [PATCH v2 0/2] squashfs: Add the mount parameter "threads=" Date: Tue, 16 Aug 2022 09:00:50 +0800 Message-ID: <20220816010052.15764-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220815031100.75243-1-nixiaoming@huawei.com> References: <20220815031100.75243-1-nixiaoming@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.189.174] 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,T_SCC_BODY_TEXT_LINE 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 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. v2: 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 | 24 ++++++++-- fs/squashfs/decompressor_multi.c | 32 ++++++++------ fs/squashfs/decompressor_multi_percpu.c | 39 ++++++++++------- fs/squashfs/decompressor_single.c | 23 ++++++---- fs/squashfs/squashfs.h | 39 ++++++++++++++--- fs/squashfs/squashfs_fs_sb.h | 4 +- fs/squashfs/super.c | 77 ++++++++++++++++++++++++++++++++- 7 files changed, 192 insertions(+), 46 deletions(-) -- 2.12.3