Re: [PATCH] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups

From: Michal Koutný
Date: Mon Oct 07 2019 - 12:19:33 EST


On Fri, Oct 04, 2019 at 03:11:04PM -0700, Roman Gushchin <guro@xxxxxx> wrote:
> An inode which is getting dirty for the first time is associated
> with the wb structure (look at __inode_attach_wb()). It can later
> be switched to another wb under some conditions (e.g. some other
> cgroup is writing a lot of data to the same inode), but generally
> stays associated up to the end of life of the inode structure.
What about dissociating the wb structure from the charged cgroup after
the particular writeback finished? (I understand from your description
that wb structure outlives the dirtier and is kept due to other inode
(read) users, not sure if that's correct assumption.)

Michal

Attachment: signature.asc
Description: Digital signature