Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2548179imm; Thu, 16 Aug 2018 11:16:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwoenIqXEh2rJNCaRC+uuZhhSy9p27JMpPTny4YVL0pm2MTz9nvtO2H32LGB943TVF6dMOb X-Received: by 2002:a65:608b:: with SMTP id t11-v6mr30142716pgu.259.1534443381826; Thu, 16 Aug 2018 11:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534443381; cv=none; d=google.com; s=arc-20160816; b=eFXx3QKlrb37Cirjmm9TtcF0QuzpMsvGD8q4gLSKrUXEcF9fRfd2aMmQqXV/klroC+ RzQCGXTTMLraFHHC1fyp0wNu/yzikmWWanh8DFa+LjnjjxHaUBbi9CtiUlWxAagKCo8F ydSKQdMg8h8SUDaOpDSy9LZJh64VKEK7iYphhyFeK+7EaFOlIWj3V5OB3/A0ZhFK2l+W +oESfGQ4a2Po086WnStaI5ryTb3hjJ/V0u1/i3RJJVYE+RqDMojrbOwU+nyN17kn6AD0 GoiEH89iaFYrEbvPrdMRqQGftSu6TJ8Xicq82X7WGa7cC3LmaOKrhNUWL/o50uUTckkm u0XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=iC40uuWlDuNV0nBfGWcwjStVpLuZIg3Iwwr0m6yA9iw=; b=tGXi0a2UUmJ4S/fErfuCPbotsfh4EIz/eWwXwDIeGWZrkfvKblJNHLX9q9n1Qjy8YM eb3PTfKlV/up/I8zeTudm60iDjhV9lJ6F5kBdHGAkrW1Rby6s29ojCEFgjHg6sYSYMhf 4GNEiDFhnc1H1YencmHd7Zh38w/tgnJi2Wp2THdQeiLexrW1P9ilDJTK6h9hj5BaoPuA T7qzQpWiCoArRfq2THst6SqZdcU8M5DLS77wnagFiFfS+9/kl6q7WQRPAe21/6t2VQHq gOgLFR6Tizytjj+xl9+ALOy5osa4OcBYEWxp2ZXBdw2UWeroBzqIZyQXi7KA575vQ+oI ZCtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=mHn5xxjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14-v6si26628877pgc.179.2018.08.16.11.16.06; Thu, 16 Aug 2018 11:16:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=mHn5xxjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391325AbeHPOns (ORCPT + 99 others); Thu, 16 Aug 2018 10:43:48 -0400 Received: from ozlabs.org ([203.11.71.1]:40447 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730270AbeHPOns (ORCPT ); Thu, 16 Aug 2018 10:43:48 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41rkzd4BQjz9s4Z; Thu, 16 Aug 2018 21:45:33 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1534419943; bh=Ho2vxPf3nmYYIKPfxs1B+dbALwve1vK9Az/gcptX5Ck=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mHn5xxjG5IzhkH1fdpL11LvtD0bffd11ooPgXVCSTX4GqDKuZdIt7/NtWJVnAUzKC HFJlY3VrBV4niLPfesVsj/+1ngeQTC2mFeaG3w7/Y0ZOuwsveNT4QOAF/dF/UT5HoG 3CzyEXTKpgl+QDpS7DJsw+4MqjC3qtjxdGWurws74AxAVqLivnF68AZ1YOhe0AUd3G bCYOaKKe/5jUoyfq7JSwuq19spmSrw7ufs/X1aiBsWgIlFm4ASndJUvwat41FV5OO6 83dW2gDL/4VmqbBCnXn5VhQFQ7i00xzh9BE2HHYXm89gSHGHOZwqoGYvcUmKa9sQf8 H1RTdYEFoziVg== Date: Thu, 16 Aug 2018 21:44:59 +1000 From: Stephen Rothwell To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Pavel Tatashin , Kemi Wang , David Rientjes , Jia He , Oscar Salvador , Petr Tesarik , Andrey Ryabinin , Dan Williams , Mathieu Malaterre , Baoquan He , Wei Yang , Ross Zwisler , "Kirill A . Shutemov" Subject: Re: [PATCH v1 1/5] mm/memory_hotplug: drop intermediate __offline_pages Message-ID: <20180816214459.64a7cec3@canb.auug.org.au> In-Reply-To: <20180816100628.26428-2-david@redhat.com> References: <20180816100628.26428-1-david@redhat.com> <20180816100628.26428-2-david@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/NCvGZErSBmGvgFoB+bM4K8L"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/NCvGZErSBmGvgFoB+bM4K8L Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi David, On Thu, 16 Aug 2018 12:06:24 +0200 David Hildenbrand wro= te: > > -static int __ref __offline_pages(unsigned long start_pfn, > - unsigned long end_pfn) > +/* Must be protected by mem_hotplug_begin() or a device_lock */ > +int offline_pages(unsigned long start_pfn, unsigned long nr_pages) You lose the __ref marking. Does this introduce warnings since offline_pages() calls (at least) zone_pcp_update() which is marked __meminit. --=20 Cheers, Stephen Rothwell --Sig_/NCvGZErSBmGvgFoB+bM4K8L Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlt1Y7sACgkQAVBC80lX 0GwD0Qf+IdwJnk7wIRcDbGn1AP6dqdsp2hpWrSr+qxhJbpz5F1d9SI1xYVt4NEqG tOoWCPi57NIHRD4sQpJFaGKtzgczPMLXfmQiA54KBOkJGRcepvxIj6a6Kb5tzemu d1Ix+NBiQ+ZJqfudhpq/AcrcOA0EZjNG4hlSmUGWwuwNe0PM6Hd2b+MDvrwNgNjz BAEh0pTczP4d8JnB/r7TpzuiZ0cIo8dy0VIAsaVmC6Nc08TZ+xaT98U94ltX6wg0 eOlW2p0QPcskaeo0dsPmPB2dNI2RMkXf3hGL3hv3K8J5IDt6K4PUEFzrlMPHm+2A +me39SLCp8ZfCqU0TdRUccD23BwZQA== =wOyX -----END PGP SIGNATURE----- --Sig_/NCvGZErSBmGvgFoB+bM4K8L--