From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 970A56B4110 for ; Mon, 26 Nov 2018 03:16:11 -0500 (EST) Received: by mail-ed1-f69.google.com with SMTP id b7so8816043eda.10 for ; Mon, 26 Nov 2018 00:16:11 -0800 (PST) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id i33si2720047edi.328.2018.11.26.00.16.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 00:16:10 -0800 (PST) Date: Mon, 26 Nov 2018 09:16:08 +0100 From: Michal Hocko Subject: Re: [PATCH] mm, hotplug: protect nr_zones with pgdat_resize_lock() Message-ID: <20181126081608.GE12455@dhcp22.suse.cz> References: <20181120014822.27968-1-richard.weiyang@gmail.com> <20181120073141.GY22247@dhcp22.suse.cz> <3ba8d8c524d86af52e4c1fddc2d45734@suse.de> <20181121025231.ggk7zgq53nmqsqds@master> <20181121071549.GG12932@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Wei Yang Cc: Oscar Salvador , Andrew Morton , Linux-MM On Mon 26-11-18 10:28:40, Wei Yang wrote: [...] > But I get some difficulty to understand this TODO. You want to get rid of > these lock? While these locks seem necessary to protect those data of > pgdat/zone. Would you mind sharing more on this statement? Why do we need this lock to be irqsave? Is there any caller that uses the lock from the IRQ context? -- Michal Hocko SUSE Labs