From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4220Bl4LVdzF09x for ; Fri, 31 Aug 2018 23:12:15 +1000 (AEST) Subject: Re: [PATCH RFCv2 1/6] mm/memory_hotplug: make remove_memory() take the device_hotplug_lock To: Pasha Tatashin , "linux-mm@kvack.org" Cc: "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-acpi@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "devel@linuxdriverproject.org" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "Rafael J. Wysocki" , Len Brown , Rashmica Gupta , Michael Neuling , Balbir Singh , Nathan Fontenot , John Allen , Andrew Morton , Michal Hocko , Dan Williams , Joonsoo Kim , Vlastimil Babka , Greg Kroah-Hartman , Oscar Salvador , YASUAKI ISHIMATSU , Mathieu Malaterre References: <20180821104418.12710-1-david@redhat.com> <20180821104418.12710-2-david@redhat.com> <46a0119b-da16-0203-a8c2-d127738517f4@microsoft.com> From: David Hildenbrand Message-ID: <5b1f79cd-553b-4f9d-2690-8d7fb553278e@redhat.com> Date: Fri, 31 Aug 2018 15:12:05 +0200 MIME-Version: 1.0 In-Reply-To: <46a0119b-da16-0203-a8c2-d127738517f4@microsoft.com> Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 30.08.2018 21:35, Pasha Tatashin wrote: >> + >> +void __ref remove_memory(int nid, u64 start, u64 size) > > Remove __ref, otherwise looks good: Indeed, will do. Thanks for the review. Will resend in two weeks when I'm back from vacation. Cheers! > > Reviewed-by: Pavel Tatashin > >> +{ >> + lock_device_hotplug(); >> + __remove_memory(nid, start, size); >> + unlock_device_hotplug(); >> +} >> EXPORT_SYMBOL_GPL(remove_memory); >> #endif /* CONFIG_MEMORY_HOTREMOVE */ -- Thanks, David / dhildenb