Re: [PATCH] mm, show_mem: drop pgdat_resize_lock in show_mem()

Andrew Morton
2018-11-28T22:07:58Z

On Thu, 29 Nov 2018 05:08:15 +0800 Wei Yang <richard.weiyang@gmail.com> wrote:

> Function show_mem() is used to print system memory status when user
> requires or fail to allocate memory. Generally, this is a best effort
> information and not willing to affect core mm subsystem.
>
> The data protected by pgdat_resize_lock is mostly correct except there is:
>
> * page struct defer init
> * memory hotplug

What is the advantage in doing this? What problem does the taking of
that lock cause?