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 1B953C433FE for ; Fri, 11 Nov 2022 07:35:54 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1otOZr-0000Cs-17; Fri, 11 Nov 2022 07:35:51 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1otOZn-0000Cl-6L for linux-f2fs-devel@lists.sourceforge.net; Fri, 11 Nov 2022 07:35:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Transfer-Encoding:Content-Type :References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: 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=eaTqeSKvUYo/MrDRIZwBCZeI7NaclnlQl39LJocl5VA=; b=fDw9QLKiOna7k5Btwztc7nyZaz u1jkoNl55pwGbvwZIdlyYf8lfsAKLFNtDgkZo+9dcyIMyuZIpyRRlcLxcVJeFDG6n8M9XK1IQIcAq n0OvIyNRqLjNUs+xDMw/ghYI38B4Dr3PBVwgsKwfuwrf6j662J1XLNiykrMyCwwXABUE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Transfer-Encoding:Content-Type:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: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=eaTqeSKvUYo/MrDRIZwBCZeI7NaclnlQl39LJocl5VA=; b=EgF9URJxiiKt/9ktPtjw8LLpPU Q77l37ltYr0+i8vwyXHYMe7YjLOLSEz5dhi7J215/jeHa0gS0goefMzpGaEleRVubz/dQV1Nt+TcP +WtZYprBIvnem4h6gZW1bYwi9lD87ondwGBuOS6h+habwxhvRDDpfKlrq30GJpLGipuo=; Received: from ams.source.kernel.org ([145.40.68.75]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1otOZm-0043MU-Gx for linux-f2fs-devel@lists.sourceforge.net; Fri, 11 Nov 2022 07:35:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E30DCB822D9 for ; Fri, 11 Nov 2022 07:35:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9F0D2C433C1 for ; Fri, 11 Nov 2022 07:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668152130; bh=dyDrK6NH+lh5heRfl4y/WI/X+oXdFK2lwTMP2+bFsTk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZAhbpLW+gr1t3KmC6KATZLAPVfgES7PGQ2dAJUJIi8byPRhtQi2gAAzReuLvGxayF KzQBgP6TLGGTOpZvUso76Zw2Qc0tLnOI6Fsg5tSv8YvDPdxc65TyRXRD4+rdkiC95l yZo0+pgotPXG2f3sQUOEq6pveq2fDGrMHCK+ka2AxxFLUX5J8bJegUs+n2gzHZeaAH JwNSyw0qnywMw0exF3dipKq1V9twy/RzuPe0QGhNoE6zq1HxCDTmNnX/9+pmQGZPnK 36hPaSwA1qNDll9K0s8hWNpxRhd6jf90YVWpUovxpvMQpF+001mvIxx9ktZdbEq/7t 4Uyv02PsXkUAg== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 854D5C433E6; Fri, 11 Nov 2022 07:35:30 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-f2fs-devel@lists.sourceforge.net Date: Fri, 11 Nov 2022 07:35:30 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Product: File System X-Bugzilla-Component: f2fs X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jaegeuk@kernel.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Headers-End: 1otOZm-0043MU-Gx Subject: [f2fs-dev] [Bug 216050] f2fs_gc occupies 100% cpu 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net https://bugzilla.kernel.org/show_bug.cgi?id=216050 --- Comment #79 from Jaegeuk Kim (jaegeuk@kernel.org) --- I just had some time to think of this issue, and suspect there was no time to reschedule the cpu in the loop? Can anyone try this change? diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index a71e818cd67b..c351c3269874 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1325,6 +1325,7 @@ struct page *f2fs_get_lock_data_page(struct inode *inode, pgoff_t index, lock_page(page); if (unlikely(page->mapping != mapping)) { f2fs_put_page(page, 1); + f2fs_io_schedule_timeout(DEFAULT_IO_TIMEOUT); goto repeat; } if (unlikely(!PageUptodate(page))) { -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel