From patchwork Mon Mar 3 22:17:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 13999543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5C42FC282D0 for ; Mon, 3 Mar 2025 22:17:46 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1tpE6a-0001vX-Ku; Mon, 03 Mar 2025 22:17:44 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tpE6Z-0001vR-MG for linux-f2fs-devel@lists.sourceforge.net; Mon, 03 Mar 2025 22:17:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aqdc8cmE8ZHerCyHHMFPatrMgp9jT+v+ZI3d4hO3MDc=; b=APRzP1SpWiYczxbjjlOBr9C1P1 m8wsAkwPrFN3rKAqiyGumQ3DIKSXKdoT8xke1qPL89q8GxGEBFxm4FO6ek47QPxazrDnOV3Je3UeV dfI5UCIeUfhvChnL7HNHCHJj9SCOJbpT3THJKFxpmjMwgVW6qDFfssifACxf0Qu5jshg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=aqdc8cmE8ZHerCyHHMFPatrMgp9jT+v+ZI3d4hO3MDc=; b=U +oAKffYfnsQSdBnWaDkGJ0U1u/MkdrFbedlZCqOuwwYFXBMiIXtxOP/z0Sz2Nq1I7rRNUA8jp3WlY cb4iD0C0RdlnJKkSOdSZEIJSknmnziPQpZe9tZfy9GW0t+c/3XvPqoAERf81HQ7orEbayz2ipgYi1 p0bNm1yi7AAlUg7E=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1tpE6Z-0004gH-1d for linux-f2fs-devel@lists.sourceforge.net; Mon, 03 Mar 2025 22:17:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D53235C49B0 for ; Mon, 3 Mar 2025 22:15:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 476DCC4CEE5; Mon, 3 Mar 2025 22:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741040252; bh=3Dhep88DZZmRiLR4JWC42gaVSxkJVdFR1Myn7cDYqJ8=; h=From:To:Cc:Subject:Date:From; b=k8IkKKnSuXX9oOfKUomPgZ7LlFvIL5SR4515wYm59tc2uZ5PIjBjagYViP42eluJ1 +i7vI38FZeb29Q8uumRm08MMoc1Kajy5RCIP7K2JO52x88tntP2CaAwbA5MVEKuQb2 JhUUTkLVMy3NrcbivsDlUWkT4pHB0KR+V4GFvuz89SVaK9ByRzRCDcQ9kOzmTJbCz4 U4cUsOP62FGX/N2k1fT8b9RaKLwBV0uHXtoPFZcbD2j0obA9jcHquAuXz/Ys5iiv86 NIpr4u8rRjLmZsEt9imeuvcnNe0rmQhvYnq3P/SHKO6PQQWsWIKtGFnLywyjjQOZwM anBGgrZjSx+hQ== To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Date: Mon, 3 Mar 2025 22:17:30 +0000 Message-ID: <20250303221730.1284822-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.48.1.711.g2feabab25a-goog MIME-Version: 1.0 X-Headers-End: 1tpE6Z-0004gH-1d Subject: [f2fs-dev] [PATCH] f2fs: set highest IO priority for checkpoint thread X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jaegeuk Kim via Linux-f2fs-devel From: Jaegeuk Kim Reply-To: Jaegeuk Kim Cc: Jaegeuk Kim Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net The checkpoint is the top priority thread which can stop all the filesystem operations. Let's make it RT priority. Signed-off-by: Jaegeuk Kim Reviewed-by: Daeho Jeong Reviewed-by: Chao Yu --- fs/f2fs/checkpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index bd890738b94d..8dbb815a35c0 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -21,7 +21,7 @@ #include "iostat.h" #include -#define DEFAULT_CHECKPOINT_IOPRIO (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 3)) +#define DEFAULT_CHECKPOINT_IOPRIO (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_RT, 3)) static struct kmem_cache *ino_entry_slab; struct kmem_cache *f2fs_inode_entry_slab;