Skip to content
Unverified Commit d9210989 authored by Kemeng Shi's avatar Kemeng Shi Committed by Christian Brauner
Browse files

fs/writeback: bail out if there is no more inodes for IO and queued once



For case there is no more inodes for IO in io list from last wb_writeback,
We may bail out early even there is inode in dirty list should be written
back. Only bail out when we queued once to avoid missing dirtied inode.

This is from code reading...

Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20240228091958.288260-3-shikemeng@huaweicloud.com


Reviewed-by: default avatarJan Kara <jack@suse.cz>
[brauner@kernel.org: fold in memory corruption fix from Jan in [1]]
Link: https://lore.kernel.org/r/20240405132346.bid7gibby3lxxhez@quack3

 [1]
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ac0c18f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment