On Tue 01-06-21 10:12:54, Oscar Salvador wrote: > On Tue, Jun 01, 2021 at 10:02:54AM +0200, David Hildenbrand wrote: > > If there is no writer anymore, why do we have to protect readers? > > Yeah, you are right. > Let me prepare a v2 as this is getting too sloppy. While you are touching this and want to drill all the way down then it would be reasonable to drop pgdat resize locks as well. It is only used in the early boot code and we have one executing thread context per numa node during the deferred initialization. I haven't checked all potential side effects the lock might have but it sounds like there is quite some clean up potential over there. -- Michal Hocko SUSE Labs