Re: [PATCH v3 5/6] mm/mglru: use explicit tier range in read_ctrl_pos()

From: Kairui Song

Date: Sat Aug 29 2026 - 10:32:50 EST


On Fri, Aug 28, 2026 at 1:30 PM Lian Wang <lianux.mm@xxxxxxxxx> wrote:
>
> Hi Kairui,
>
> > Replace it with explicit (tier_min, tier_max) parameters using a
> > closed [tier_min, tier_max] interval
>
> While touching read_ctrl_pos(), would it make sense to add:
>
> lockdep_assert_held(&lruvec->lru_lock);

Hi Lian

Thanks for the suggestion. I don't think that's necessary, though.
Nothing will go wrong if the lock is not held, reporting warning is
kind of over react :)