From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B4DFC2A06D for ; Sun, 4 Jan 2026 02:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YahvhqAiylEHhZoKAu0q6T1ruIo7k5O1qYtDXGMxlEg=; b=KZDV9OymWh+mQX6GjofFgRJzi+ EOrnDMngA8ypTJDg3qWUs7sC+ub4TC0fRyX2DcxybsPQXtsxkGmIQlVvmY4gYr+mgh+m8tf/Pqamu wY75m7SsRq78hJuluj/GNhsKOuXm7BnE32yD2/izTKr4+FVueGCfDjOq7LvkTG8XQJ/c=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vcDXi-0006zM-BC; Sun, 04 Jan 2026 02:08:31 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vcDXf-0006yq-F6 for linux-f2fs-devel@lists.sourceforge.net; Sun, 04 Jan 2026 02:08:28 +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:References: In-Reply-To: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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KqyEu8b3A+8/2SPphiNTbPcWDXyNyveuUIVDV2NrnCU=; b=daXYWK3D5rpKPflkd7vAw2C97s vYGHQiAgOm5irC04emyiwmjqiArxakm5S1x4C3bQkMCiZnFymV7KTQFUM7/2RQuT6ZnTxJFBIMSW2 vmpKywjAM4XSAQHJZUL/9FZm+pv4bCkeIXTPLgTFD+uy0zWDb9KC7uUcvHuAncNDdjEY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KqyEu8b3A+8/2SPphiNTbPcWDXyNyveuUIVDV2NrnCU=; b=A3d9PSRYj857CcD44U+CEnhurP WcVF7do34D+NMyhPoCvEGnk0OOXiU1dImvxKMD9NcYJEvafyJa6/VxVqf4IAZ3M2r6m1JGedv27oK dtSAcPY9crccq88rwsfkzgtE3Yz8/7GWNg/ZnjPnwqqn9+u5xVbaNqHLHr3bkl59vizA=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1vcDXf-0005oG-Tb for linux-f2fs-devel@lists.sourceforge.net; Sun, 04 Jan 2026 02:08:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 9FEF44434E for ; Sun, 4 Jan 2026 02:08:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72F0BC19424; Sun, 4 Jan 2026 02:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767492497; bh=AcjjjCa7WZR0K1hb1WnjFbGchQTxn9lSBGZoMtQIOOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FY6QAkVYrJ8WKUiO1Kr0uO2D3wHSGlNQX3WPXhYqSxQOVecn/uL0YvcHLRRhYKafl rB4iFp+vITehHQgYkilR8MA8rhNC9TbHAYkIFjRwebwGIO/OaKjKcUVOVzwurzFiZ+ YPs5NWhzdfvzdOcTGPNb1moS94Lmkg9km/2Kw1iPLIDPlY78cnbwNI1PPPl1YlRwRO 222EcgsZ36EIFmwoz/EkdrernyX0DCS6zGI/fXjRBkX1KPt1PcNAC4dogrSOk6oGNP C5nLU1VKKkJBpFzDiPSPKtZA1VjgrLGYXtUoBdFkRORh42iQPbe5moIApuY1lNUVWN BrGMhSd6fRSBw== To: jaegeuk@kernel.org Date: Sun, 4 Jan 2026 10:07:25 +0800 Message-ID: <20260104020729.1064529-10-chao@kernel.org> X-Mailer: git-send-email 2.52.0.358.g0dd7633a29-goog In-Reply-To: <20260104020729.1064529-1-chao@kernel.org> References: <20260104020729.1064529-1-chao@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vcDXf-0005oG-Tb Subject: [f2fs-dev] [PATCH 10/14] f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT 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: , From: Chao Yu via Linux-f2fs-devel Reply-To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Due to timeout parameter in {io,}_schedule_timeout() is based on jiffies unit precision. It will lose precision when using msecs_to_jiffies(x) for conversion. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cb9e94904c6b..c4d3b37821d6 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -681,8 +681,8 @@ enum { #define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */ -/* IO/non-IO congestion wait timeout value, default: 1ms */ -#define DEFAULT_SCHEDULE_TIMEOUT (msecs_to_jiffies(1)) +/* IO/non-IO congestion wait timeout value, default: 1 jiffies */ +#define DEFAULT_SCHEDULE_TIMEOUT 1 /* timeout value injected, default: 1000ms */ #define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000)) -- 2.49.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3EC6246BC6 for ; Sun, 4 Jan 2026 02:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767492498; cv=none; b=buEjlzNAJfSQp9KUBO+djjxh2aVr9EZ2sJdSIc1vkzQoTIGjZ6Vhn+5mlxcm8eRdDvEpsgkO0/Zb2xdGeCitYniT3IuGY/JyK9s7TUMiqlCjibMASJc2Z32E7dXOxW5Q0CdN4icwzPbg3OlXDRt92kxsdvLl0lA1RSCbs/gaJMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767492498; c=relaxed/simple; bh=AcjjjCa7WZR0K1hb1WnjFbGchQTxn9lSBGZoMtQIOOE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FEGyOAvKJzHMumh5iNc94dKMvF0j8T2heswWVYdNcGucaLOxaDC8Aj7nE7yn1d66jNmeuVu7cJW38/F2mTbhl81CfafKU2ds33BmKU4utrFwkrn6lq5wtznOQvZY3ydJ/lxRh/1iaaGO73FbClMzITaVuIvm3C6Tws/taY18kR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FY6QAkVY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FY6QAkVY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72F0BC19424; Sun, 4 Jan 2026 02:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767492497; bh=AcjjjCa7WZR0K1hb1WnjFbGchQTxn9lSBGZoMtQIOOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FY6QAkVYrJ8WKUiO1Kr0uO2D3wHSGlNQX3WPXhYqSxQOVecn/uL0YvcHLRRhYKafl rB4iFp+vITehHQgYkilR8MA8rhNC9TbHAYkIFjRwebwGIO/OaKjKcUVOVzwurzFiZ+ YPs5NWhzdfvzdOcTGPNb1moS94Lmkg9km/2Kw1iPLIDPlY78cnbwNI1PPPl1YlRwRO 222EcgsZ36EIFmwoz/EkdrernyX0DCS6zGI/fXjRBkX1KPt1PcNAC4dogrSOk6oGNP C5nLU1VKKkJBpFzDiPSPKtZA1VjgrLGYXtUoBdFkRORh42iQPbe5moIApuY1lNUVWN BrGMhSd6fRSBw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 10/14] f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT Date: Sun, 4 Jan 2026 10:07:25 +0800 Message-ID: <20260104020729.1064529-10-chao@kernel.org> X-Mailer: git-send-email 2.52.0.358.g0dd7633a29-goog In-Reply-To: <20260104020729.1064529-1-chao@kernel.org> References: <20260104020729.1064529-1-chao@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Due to timeout parameter in {io,}_schedule_timeout() is based on jiffies unit precision. It will lose precision when using msecs_to_jiffies(x) for conversion. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cb9e94904c6b..c4d3b37821d6 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -681,8 +681,8 @@ enum { #define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */ -/* IO/non-IO congestion wait timeout value, default: 1ms */ -#define DEFAULT_SCHEDULE_TIMEOUT (msecs_to_jiffies(1)) +/* IO/non-IO congestion wait timeout value, default: 1 jiffies */ +#define DEFAULT_SCHEDULE_TIMEOUT 1 /* timeout value injected, default: 1000ms */ #define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000)) -- 2.49.0