Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5121670rwi; Mon, 17 Oct 2022 16:03:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74diF1rQokgfNKP1DZ4LOVxIyS5+E63Y/QXX/+WoGQnBc4CQg+1A4qK/3TM4XoohhNARJy X-Received: by 2002:a17:907:728e:b0:78d:f5c2:70d3 with SMTP id dt14-20020a170907728e00b0078df5c270d3mr42413ejc.506.1666047810919; Mon, 17 Oct 2022 16:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666047810; cv=none; d=google.com; s=arc-20160816; b=n1J66/tCCZk5OI/JIXJDhCFYkpfIDgS2/LHVKfYzAYjCnJ4Dubn4qilU3UUThKWGcK zwTWq/9bZavBP+g6ADClwBncYPJ+FVdf+FBK+3PNQ8VItj8smmQwTxO+WwQGJgqFu2J0 nGAa0/Qeu+MAVPqkt8Bz8oYAFzAY2g8sqkOHb8Rhtd5XbFkRP5t3TqV5/8rKOnnV2mrO soc4Oua0oMScd8Larl8cV+xEHC8Z0X7S+NBeRKi/B6rNU7I/KPVaPSfGGx4Rnbaz2Uzk FRu/R2BRKYpv/P0AlbM6MGuE8yYQTz6FNbYPr3KA1kg+K4nNGk0aguvb8RZE1MKO9K0s RaUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=r+mO5dnQ4wEnM3Ay6tjAE6o+DD/J6JLdBc0IhSmPTiE=; b=FFglWlbCaiHNlZnLxNXI6eSfRP/TDtc4u9YaX+k1iknJlUEHHZkyHsgNiB9pUYvMVZ XFwPbTrVYdzhjFBUD0ydNfYtUSVsunJcXuKs9q0reeE9mpvwhtI81dLhzZsqU6Vwid6c PMzvPI+rVr4hKNLnj/BbMcTNSFPSyN+VwXOHax8y5xMboFbq4uAR0Fdjl62j1p1jVZW/ SUvaWdfjTJwX8YR0/oDB3TtmZqeXqjPUYIUcN41pyds4Og8y1CThv/1b3/e1iX2ExyTC OnwR8yMnJUfjcSQQcDtXYFbQ6ZyWRWjhqEmRBiNHdkVjZvKcKGFdjKU+i2BEe5wtJrv7 4IqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="d/w6LDf3"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk10-20020a1709077f8a00b0078d49f0df9csi11535279ejc.453.2022.10.17.16.03.02; Mon, 17 Oct 2022 16:03:30 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="d/w6LDf3"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbiJQW74 (ORCPT + 99 others); Mon, 17 Oct 2022 18:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiJQW7r (ORCPT ); Mon, 17 Oct 2022 18:59:47 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EF5B8286A for ; Mon, 17 Oct 2022 15:59:27 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id t10-20020a17090a4e4a00b0020af4bcae10so12316499pjl.3 for ; Mon, 17 Oct 2022 15:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r+mO5dnQ4wEnM3Ay6tjAE6o+DD/J6JLdBc0IhSmPTiE=; b=d/w6LDf36K9mIyTgebfyXYxWvOSqeFeO9BIJysnYrODrG1L3s74UR3HH8WiI/k1UHO SZBqqXUVBCw10yRKptC5uJAwQ0wSq5FacwiXQAGSLy9Jrf4+CJfE+cpeEt8J8plcJCzT RqRUMdYFzrBU6BbE/AJSM0J5OjgsZR4Ud6Qq9NtQP4QkX8b0Qb1JjGIctn/l6GSDt4pW Rj28uM4eElzEC9vB1BSvxfkLHk1cIRyr1SDLLxOXbEZua1h9WXmmRZ4A0LAmF0Ji4zfu Vq1AxGXZdH/Y3SJ0RRAJE69N/tZCekClJQerSWMkNMAaJHNlR9tXBNDSzTPu27QigUOK l9xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r+mO5dnQ4wEnM3Ay6tjAE6o+DD/J6JLdBc0IhSmPTiE=; b=dW6MvsURLW63UWtldD+YVITeRtv5pI42gmq+u7GKLJAqtPl+VsjB1dSOi4LbfVKH9m 3GF355MnBeX0GE0S+eaNREChI1gZFuY2DECG3YGMSuQKj4xS9KfwSrRPYDJE4mGf3Bp9 f5klqg0WWnh0x1PXcPhMBFWHFDFEmWi8Hn/eaCK6L+ueDaxdYapS76xbPlSC7TJyx12H 4NbbMA3Z5h4Cn+aFtEO1Vi4eg1rjLFbsfGm0drkhN6InV1t1ZF9WebyLKG8IUTPfU53e bc7EoQmRCtBh1EbYGBBadh+FdzN++YJcoAwBRzp6fWEVmnvNml6FyYzIC+yyBtpvBCth Y+Og== X-Gm-Message-State: ACrzQf17/HJo26I+D24ypdpPljxbX0tfXiJT8K20FPrpUClfN22t+GC+ 1E+tCr7/no6cg6Cx3HKNlcBzVbBLPklhonCCtQk= X-Received: by 2002:a17:90b:4c8c:b0:20b:d3f:3c8a with SMTP id my12-20020a17090b4c8c00b0020b0d3f3c8amr87645pjb.219.1666047566911; Mon, 17 Oct 2022 15:59:26 -0700 (PDT) MIME-Version: 1.0 References: <20220916083604.33408-1-nixiaoming@huawei.com> <20220930091406.50869-1-nixiaoming@huawei.com> <910e5533-4abc-85f1-6bfc-4d776f8bed7b@huawei.com> In-Reply-To: <910e5533-4abc-85f1-6bfc-4d776f8bed7b@huawei.com> From: Phillip Lougher Date: Mon, 17 Oct 2022 23:59:14 +0100 Message-ID: Subject: Re: ping// Re: [PATCH v5 0/2] squashfs: Add the mount parameter "threads=" To: Xiaoming Ni Cc: linux-kernel@vger.kernel.org, phillip@squashfs.org.uk, wangle6@huawei.com, yi.zhang@huawei.com, zhongjubin@huawei.com, chenjianguo3@huawei.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Mon, Oct 17, 2022 at 2:11 AM Xiaoming Ni wrote: > > ping I was hoping you'd notice the obvious mistake you made in the patch set, and send an updated version, which would avoid me having to point out such mistakes again. I have replied to patch [1/2] Phillip > > 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(-) > > >