Re: [PATCH v3 1/7] mm: demotion: Fix demotion targets sharing among sources

From: Jagdish Gediya
Date: Mon Apr 25 2022 - 05:36:28 EST


On Sun, Apr 24, 2022 at 11:25:50AM +0800, ying.huang@xxxxxxxxx wrote:
> > Subject: [PATCH v3 1/7] mm: demotion: Fix demotion targets sharing among sources
>
> IMHO, this patch doesn't fix some bugs in the original code. Instead,
> it just enhances the original code. For example, the subject could be,

I think it is fixing a bug, there is a comment in the code which
mentions that 'used_targets will become unavailable in future passes.
This limits some opportunities for multiple source nodes to share a
destination'. As per this comment, it was intended to share a node as
demotion targets with some limits but the code limits not some but all
such opportunities as no common node can be demotion targets for
multiple source node as per current code.

> mm: demotion: support to share demotion targets among sources
>
> Best Regards,
> Huang, Ying
>
> [snip]
>
>
>