[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20230918-mantel-hochachtung-6987b937ac66@brauner>
Date: Mon, 18 Sep 2023 13:10:29 +0200
From: Christian Brauner <brauner@...nel.org>
To: Chunhai Guo <guochunhai@...o.com>
Cc: Christian Brauner <brauner@...nel.org>, viro@...iv.linux.org.uk,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
jack@...e.cz
Subject: Re: [PATCH] fs-writeback: do not requeue a clean inode having skipped pages
On Fri, 15 Sep 2023 22:51:31 -0600, Chunhai Guo wrote:
> When writing back an inode and performing an fsync on it concurrently, a
> deadlock issue may arise as shown below. In each writeback iteration, a
> clean inode is requeued to the wb->b_dirty queue due to non-zero
> pages_skipped, without anything actually being written. This causes an
> infinite loop and prevents the plug from being flushed, resulting in a
> deadlock. We now avoid requeuing the clean inode to prevent this issue.
>
> [...]
Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc
[1/1] fs-writeback: do not requeue a clean inode having skipped pages
https://git.kernel.org/vfs/vfs/c/3d744ef7ea7a
Powered by blists - more mailing lists