From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796201507; b=eoIn1e9/v0PwjH0aTqcQwAQfr6nUGUKYcRpvpcF4Kw0Lx9v+1IWrIptykDh3kH70xy8E 1IwtE7YCj6P9RyMpu4fRtf6jBFpzJGDGQvh9P+zo5ucV7fZfxs0AjnJCnEycWFdqkppaA UJhZgTLV2hO2oEEtSRYzsRf6OuLqILscnTUbkhaGZTXTKz83eS+YZHDEEGCQvjGGwexex ApBIkGwqzi8dzF0mi+6hjWXTiHvnXBVGrYFNjjJ+V0V6UbSYt8J2qXOPcWKPfPOV/YIa5 8YNwPmJYZ8t4jMStOVN9uM50TJQwGdlGimXfE1DX46Xee6O/H1G/VnkrEXlUKInVcBQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796201507; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=MyMLdnigLds1/JvdoohikREwpRq3GXvPP87xs+Ap9cQ=; b=Pzd/J+MuExm3sML6gpEq7a3n17qeN8JhddDbTgazARweCM3AsKZIb0bm9st0pa1xVCLu dAEVJFH8tiGxWGUkVVbXhv7Rfz5d7B+5unPKqJFE54rAsBOV/ZqCmAaazVhE7CPy7Tzur wZJoHY+ANoDdzBA5s92Zz0VjM1LiJsqVBizTTYwbB25EnoI5EjnAnUNxZVdNiK/fZ4igs LmbRWXLwejORdc2F8PkUtsnm74tD7aseVMZYj7tXq5vSG1ic0+YxF/MKVCwWQkXuawLBq 3dI3jNFcEMpsntCFu+cLOyZQXwB4JPzlwPjN5vEcKFjKVsrYg+4W2AWepDsoILcRLHw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VTbN9dN3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4A47606A32D for ; Wed, 2 Dec 2026 08:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VTbN9dN3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B78D1F00899; Wed, 2 Dec 2026 08:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796201506; bh=MyMLdnigLds1/JvdoohikREwpRq3GXvPP87xs+Ap9cQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=VTbN9dN3C/u9DevS7pgXTzxVL8m6FeI8fhKJpMFCCejgOebCXBYEXBtrdrhHl6vhA oUAUvKhTfR6/L4wapEukLIeW++Hz7EGkyas3C769iZ/2uU3VSpqqqUVKd8kV/VkYCp VJXSy2d6ductjevdRbOsSmxMk8Zs+pB982YR30zzMZYkPV/vOab2PawZ8GFbU/kZyT gSXqd1oEmhZKhNTLV5K3Lc21cpVC70biYXwsBekvOWg1wixxz1SwCgYzz0KMDwH8MZ IYQ92qmB/fmgH3VW6xCyxpP/NJZq+rM6tZux4kpRlhp0EH+tcpK3BaOaMNL4KkEpfy uhJTDe1ie4M2w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ext4: submit pending IO before restarting writeback handle Reply-To: sashiko-reviews@lists.linux.dev To: "Julian Sun" , linux-ext4@vger.kernel.org Cc: tytso@mit.edu In-Reply-To: <20261202084138.3973158-1-sunjunchao@bytedance.com> References: <20261202084138.3973158-1-sunjunchao@bytedance.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 08:51:46 +0000 X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > In data=3Djournal mode, mpage_prepare_extent_to_map() can deadlock with > jbd2 commit when restarting the handle while holding an unsubmitted bio: >=20 > Writeback worker jbd2 commit thread > ---------------- ------------------ > mpage_submit_folio() > set folio writeback > queue bio in io_bio > mpage_journal_page_buffers() > redirty folio > ext4_journal_ensure_credits() > jbd2__journal_restart() > wait for commit ------> ext4_journalled_submit_inode_data_buffers() > folio_wait_writeback() > <--------------------------- (blocked on unsubmitted bio) > [ ... ] > Fixes: 3f079114bf52 ("ext4: Convert data=3Djournal writeback to use ext4_= writepages()") > Reported-by: syzbot+2cc28770f99213896a7c@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=3D2cc28770f99213896a7c > Cc: stable@vger.kernel.org > Signed-off-by: Julian Sun Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202084138.3973= 158-1-sunjunchao@bytedance.com?part=3D1