Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3729963rwd; Mon, 22 May 2023 19:45:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/P8rGV2WGJ+BSHsLyKh8iymgE/cvhuyauyyAzs/tRToSB2KEuIjHVbZN+d7Qji5PsRRJ1 X-Received: by 2002:a17:902:c20c:b0:1ad:d95d:ca9c with SMTP id 12-20020a170902c20c00b001add95dca9cmr12450521pll.15.1684809941325; Mon, 22 May 2023 19:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684809941; cv=none; d=google.com; s=arc-20160816; b=vikN7e15/SphBN9sz5o836kq9CiGzEHSmXTY26Slqpeuv6bvyjzVEy6mv4TRWxqy+9 W+17F1YjaGmPniXZXADoNYBG35QfDsSwiA4maSKyAzHHLo5bRhiPcRPA+pUSL2RXcv1q 95NndLRc4XUzpjtp0oS0E7/FVIWSo3zIPOa2j65WScPunf5/UZsgCCJpZ36jrqkMhmhC fZoKE2UUD+kp0VihbxRz6ZqFXVhEl4UoPKVVqaQoRTVkzcG6J0agb1HRlbkmjUIdKHUb RM+pD5m+xdXBdU1KCAOS38ky0VQaKL2FhPs5SCZE5pnMpVQ34j7IaSMCSzmoe4EsFKMU wQFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Oy1fEYOjdw9GRZ4W/gqIzqsxA2jpxKh6oxmTgbjHp2I=; b=H8RuhhYZZ5RxGiRfHbBZY2LNrB8iR7lr7qdveM9yrVkTJv177yg5UTwJfESruv5ngK jr5tEa4x3dibRjuJtVXshY0KgkCeoauWEoB+PyotvlZoIEvFqasFNKr9lfBNYV1+v6a0 heJsqXfPrxVsZp1sl/uXUuAXRkyuA97O+siPwHDBt+AwPd9RSoVuH+Tq5IrLz97hBIMX 6x9DgrNBkq6CGe0+a+Ok67V2oGvN1jW03U3k9McG4buzTPPN23FAbnRhEdHIqogpMzdB EltZ+DzzUn/n/qM+YpjrZkygJX4mmwJYimOJ7p8v0R75vBqVZDQxjGZ38dZCAEgQ3abL vA9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0JwIPCtN; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170902eb4a00b001ab197cb503si28118pli.355.2023.05.22.19.45.26; Mon, 22 May 2023 19:45:41 -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=@google.com header.s=20221208 header.b=0JwIPCtN; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbjEWCcV (ORCPT + 99 others); Mon, 22 May 2023 22:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbjEWCcU (ORCPT ); Mon, 22 May 2023 22:32:20 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938CDE9 for ; Mon, 22 May 2023 19:32:18 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3094871953bso3529490f8f.0 for ; Mon, 22 May 2023 19:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684809136; x=1687401136; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Oy1fEYOjdw9GRZ4W/gqIzqsxA2jpxKh6oxmTgbjHp2I=; b=0JwIPCtNAGkP0yFDPIEz1ckdt4yootZqk+wiYVLMTjGXcSl7O01SdXUNiNRVnm42mD MvUv9J8KbP5KnILjvIa2C3gwHjEucdg5PlJmFblioKxv1GXe1/g5eRtOPvgkd1TBz8tx ckrXkabrcYQ6KAHhuCEDq22K00yKcM0ADcdmsLvt+aEETGkBAGF9hFMd2EGs0hRCxe07 HesiRJhSRJZOVsa0Z4CBTHNuiZNNpw5es5B/ePOn63VfQpbAEuIqvd+oSLcvh029lxW7 lhJZpBtLPKb5r4m5o4Bm1sU+VlDfvX0d/oZv71v77a9vTzMS1sSHnOpbLyTBVrMtaGtW bCug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684809136; x=1687401136; h=content-transfer-encoding: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=Oy1fEYOjdw9GRZ4W/gqIzqsxA2jpxKh6oxmTgbjHp2I=; b=mEPE7G8rRlwmydC53RBS0yYBuFFTKOt3n9UdUfFlWaMCpvIq2phlHjcAzkMTXyGi4D ID+i9MDTTVDIgxFGvz+z2bP1wd1Im5tleEx3+3mIbM4x+oabhc5UcMaczwiMutv9cIGd mJo1nvVxGYA7fo+BsZmepomST6qxWFxXxYdbRb6tHuIoWS2U2KmV4+p8edxZ4KOJeSd1 F/eFscTJSUgbXsyaCa1lGnG/lDfcYT1bi8I010S/aBZWYL528eqjQfDkhtHLQ2cymar2 8hr8skYnH5Fvtvrbm69hw3a1ixOqltqw7BHJPQ3gep7qSZXfDwmzn0oTTMbe3GfayTii Mx4Q== X-Gm-Message-State: AC+VfDz5ut4f7RMaJX447UXcy3J/gUQdUszXn5Hbeak+MfqM/cZJbk5u +37MTfRWEDcifk1a7dzbWEYHM9zLoQ4Gks/nNkUIiEaDEXXanVagSgc= X-Received: by 2002:a5d:5448:0:b0:307:83a4:3d3b with SMTP id w8-20020a5d5448000000b0030783a43d3bmr7054212wrv.54.1684809136467; Mon, 22 May 2023 19:32:16 -0700 (PDT) MIME-Version: 1.0 References: <20230522092141.124290-1-hsiangkao@linux.alibaba.com> In-Reply-To: <20230522092141.124290-1-hsiangkao@linux.alibaba.com> From: Sandeep Dhavale Date: Mon, 22 May 2023 19:32:05 -0700 Message-ID: Subject: Re: [PATCH] erofs: use HIPRI by default if per-cpu kthreads are enabled To: Gao Xiang Cc: linux-erofs@lists.ozlabs.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, May 22, 2023 at 2:21=E2=80=AFAM Gao Xiang wrote: > > As Sandeep shown [1], high priority RT per-cpu kthreads are > typically helpful for Android scenarios to minimize the scheduling > latencies. > > Switch EROFS_FS_PCPU_KTHREAD_HIPRI on by default if > EROFS_FS_PCPU_KTHREAD is on since it's the typical use cases for > EROFS_FS_PCPU_KTHREAD. > > Also clean up unneeded sched_set_normal(). > > [1] https://lore.kernel.org/r/CAB=3DBE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8Gb= O6wyUqFneQ@mail.gmail.com > Cc: Sandeep Dhavale > Signed-off-by: Gao Xiang > --- > fs/erofs/Kconfig | 1 + > fs/erofs/zdata.c | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig > index 704fb59577e0..f259d92c9720 100644 > --- a/fs/erofs/Kconfig > +++ b/fs/erofs/Kconfig > @@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD > config EROFS_FS_PCPU_KTHREAD_HIPRI > bool "EROFS high priority per-CPU kthread workers" > depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD > + default y > help > This permits EROFS to configure per-CPU kthread workers to run > at higher priority. > diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c > index 92f3a01262cf..3ba505434f03 100644 > --- a/fs/erofs/zdata.c > +++ b/fs/erofs/zdata.c > @@ -367,8 +367,6 @@ static struct kthread_worker *erofs_init_percpu_worke= r(int cpu) > return worker; > if (IS_ENABLED(CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI)) > sched_set_fifo_low(worker->task); > - else > - sched_set_normal(worker->task, 0); > return worker; > } > > -- > 2.24.4 > Looks good! Reviewed-by: Sandeep Dhavale