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

Jagdish Gediya
2022-04-25T09:36:27Z

On Sun, Apr 24, 2022 at 11:25:50AM +0800, ying.huang@intel.com 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]
>
>
>