From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 AD720486E71 for ; Tue, 25 Aug 2026 15:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787672462; cv=none; b=OEiTAd/DYzuJogSVOOPLLv0AS/9+OEul+Hj7bEDxzPc4CUAHUlcUqsNvjCP4+VT/hZKN1+y5JpbOckdvFBPHe08rTdTCRtLrF6FpGkgx2htVl9mezEJmFNGbETKUoP48ion83u14kwT9pZR73Aa/qWNJOa9fNkHNiQnmByNeG2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787672462; c=relaxed/simple; bh=A5V3hAGaCFzSfl/9DJmZCPrqqu+lLEIrQVNfW/i8mQ0=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=E8+U1SO4do4TmPZzRrcKaVXDE595u8OTBI4mnH/1ilH/FzCd2w8KV7UCQEz8vk4Nz4h409OhOxx9dbwbQOIcBw4HX5qlaETx+8zirTUMBEvtHRG5HBkKBiJD+tDKo1q871iOBRse7ysU+4f7yd1nGKvN6IvxiO29eZcPekBJSBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aOUlX+FZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aOUlX+FZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7A791F00A3A; Tue, 25 Aug 2026 15:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787672459; bh=AZYqTRiRC1MK3iy8tE0K+lWCz282ENHvObu+czgdtns=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=aOUlX+FZpitsGGUfUy2rtl1niJoE0EvvlYjVTC7dqwlgBOLBXNLqtCJEX0B5AuJEC zN9kb80HQZEIZM3xT3dJtT979Q9d0bVqy1+urv/adbivkHqQprX0W8kpQacwgOJ+1h 1wAwOCB39fMYKbGBGSIDUOnTJHUXHIMRULhoDONO4Ubs2LqnpG20sdQRDsZTbctq7Q a1sHjgs2y6SYn35Xj89Khd+76Fh2vr3uU4DtEMDl8T9DxH95JpHuIb4fYYnqbimr4v T08llkRN6ifzy3BIXHfsN0ShgIJ6lWN2srKyiVtEaRBmZZ9nLRkw39papJea4FkWag S4sl3TOTQEs5w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 197983924FEE; Tue, 25 Aug 2026 15:40:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH] f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages() From: patchwork-bot+f2fs@kernel.org Message-Id: <178767240663.3943858.7250949044919337170.git-patchwork-notify@kernel.org> Date: Tue, 25 Aug 2026 15:40:06 +0000 References: <20260824131729.3694378-1-chao@kernel.org> In-Reply-To: <20260824131729.3694378-1-chao@kernel.org> To: Chao Yu Cc: jaegeuk@kernel.org, stable@kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Mon, 24 Aug 2026 21:17:29 +0800 you wrote: > There is potential deadloop in race condition: > > Thread A Thread B > - fsync > - f2fs_do_sync_file > - f2fs_fsync_node_pages > - last_fsync_dnode > - folio_get(last_folio) > - f2fs_setattr > - f2fs_truncate > - f2fs_truncate_blocks > - f2fs_do_truncate_blocks > - f2fs_truncate_inode_blocks > - truncate_dnode > - truncate_node > - invalidate_mapping_pages > - folio->mapping = NULL > - is_node_folio alwasy return false > - atomic && !marked is always true, > then goto retry > > [...] Here is the summary with links: - [f2fs-dev] f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages() https://git.kernel.org/jaegeuk/f2fs/c/ce366bfa821e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html