Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2679438rwd; Mon, 22 May 2023 02:35:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HQwj8bsZjRh5saHH9jcVY9Db2txlohjg9UT+skGrwfkTdPqcVEqWGEd5OnxTjydNPRBZG X-Received: by 2002:a17:902:e549:b0:1a9:9a18:345c with SMTP id n9-20020a170902e54900b001a99a18345cmr12876964plf.44.1684748110370; Mon, 22 May 2023 02:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684748110; cv=none; d=google.com; s=arc-20160816; b=cg4aoGZfL1C4YbFtqsSIFa5PNhS2JjiHWhJWYhKgKRV5hFBikXC2eRnxKH7DWqbTDi NVeLk7GFfGHBGZpCmA/sjLykvHPMJWtfx5k7IJoj7D1BiikrFsQqRzruBbLQCBjWhr9b FFz/Ff30QD3IKRVinP+3Q203ez9TIN8MsA+EIL8tJmdvIo1n/DSqtiS8xPvVml7scR3s z+0bYHOVH9ARvDtRBODqOz5lDNcAH0Otjqzqhm3nOpnKBHh+UBW25QAT3FZ/vYs3eNBt 4iEZmRSzmBcpj5Pw9xEt8+1pwsoMR8YoEr62OF8Uir8GzfgSnvv6YUTThb1T+bhmUZQL 6N+w== 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 :message-id:date:subject:cc:to:from; bh=7Ok4Z+9Z0Rv0jUp5Qn6mkbcGDrgfqvj0zWT0ZoKH/7g=; b=qqQfGdec4QMh5Kn76VEc+Z49e14aImjVdRLjNEZo22T3Nm0NUUiA7sI8V3SwmJB1R5 VnmvVS/KFjIIQO6R23NqJ4X3KAu/BmRKF+IKU9Ywp0biELtCF/dhRnq/kfNim+6WAn5C LPj1rYS9rOaNMgkj+ie7Cekf8kS+KxHJbZua9bGJKaRtuimZB1eJ1EAJLn56YuZ7i4nG G6+Oj765wBPTxrG6sTI0Ur2zPlxckbpAd1+9Ccp70W7c1csvaIm69Kz/NjFnPR9RJDab G34R5dxt5JanBsPa92YDGx7PzocQNveTHuLVll8othocGRWTC88qOHfI9ZiP/mOz9L0u 2png== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a170902bd0100b001ae16575087si4237421pls.595.2023.05.22.02.34.55; Mon, 22 May 2023 02:35:10 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232590AbjEVJWA (ORCPT + 99 others); Mon, 22 May 2023 05:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232778AbjEVJV4 (ORCPT ); Mon, 22 May 2023 05:21:56 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D505012B for ; Mon, 22 May 2023 02:21:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R451e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VjCMWO._1684747302; Received: from e18g06460.et15sqa.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VjCMWO._1684747302) by smtp.aliyun-inc.com; Mon, 22 May 2023 17:21:47 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: LKML , Gao Xiang , Sandeep Dhavale Subject: [PATCH] erofs: use HIPRI by default if per-cpu kthreads are enabled Date: Mon, 22 May 2023 17:21:41 +0800 Message-Id: <20230522092141.124290-1-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.24.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, 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 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=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@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_worker(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