Re: [PATCH] perf: Make the mlock accounting simple again

From: Song Liu
Date: Wed Nov 20 2019 - 12:18:38 EST




> On Nov 20, 2019, at 9:06 AM, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> wrote:
>
> Commit
>
> d44248a41337 ("perf/core: Rework memory accounting in perf_mmap()")
>
> does a lot of things to the mlock accounting arithmetics, while the only
> thing that actually needed to happen is subtracting the part that is
> charged to the mm from the part that is charged to the user, so that the
> former isn't charged twice.
>
> Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
> Cc: songliubraving@xxxxxx

Acked-by: Song Liu <songliubraving@xxxxxx>

Thanks for the fix!