Message ID | 20180927092554.13567-5-david@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C536F180E for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 27 Sep 2018 09:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B80D22AFF0 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 27 Sep 2018 09:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC5CB2AFF3; Thu, 27 Sep 2018 09:26:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54ED82AFFB for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 27 Sep 2018 09:26:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 169FC8E0002; Thu, 27 Sep 2018 05:26:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 13FEC8E0001; Thu, 27 Sep 2018 05:26:39 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F23EA8E0002; Thu, 27 Sep 2018 05:26:38 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by kanga.kvack.org (Postfix) with ESMTP id C81168E0001 for <linux-mm@kvack.org>; Thu, 27 Sep 2018 05:26:38 -0400 (EDT) Received: by mail-qk1-f200.google.com with SMTP id u129-v6so1903959qkf.15 for <linux-mm@kvack.org>; Thu, 27 Sep 2018 02:26:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=nz0n2L3JxULsBS/pUHRQ1cL3pjanD6P0YON1fc9C7I4=; b=iXEDyoYlpmiRJ53EN2k+no1yiKBQc4VOTt1Yh1p8u5rTtZ12+STuh2eFp2ECioxNqx VWZUF2JHTmmaHGVBZRHXbSt8XJi5Rc1HU4mx6quWb13XfrrVMnD0bs5fB0V4itSLEBa6 eQuUQZKBFReBWiSqQQRx+6YR+o+lHBCrpV1XBq3Oc863/nqNaAEWrc0BoRl8p1F1b49K ptjJ5VNVX+Jml/cDkQKmlMUycXDtHbTfVeBuk2pl34mIzw95XQJ85qsZOnwwMebGF2YP FnwlsRGRS1brgW6GXDm8EQZYAXN6kS0A4ZjXMDG7kORqd+Wbkllwt1cy/9P4U4ffjaFz kRBQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ABuFfoggrmJeP6DOsmQxR7+jSt9SqmYi0lB1nKCAAladpiwMpKLzJ+c7 6i2cV4dUXKGcY4dMw0hAi9jdjTQDVt9rCdtTX9cvNTAoJsR7QuSx0BbEtrGgNTgukm/0harrHbo zUzYGBF3AUQrbwvRxdHoohqMHl0ar6ohwuzgXD9dGC7YpBeFyaDdgNfFeKoLtfGmb0g== X-Received: by 2002:a0c:ed44:: with SMTP id v4-v6mr7360394qvq.22.1538040398612; Thu, 27 Sep 2018 02:26:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62irA7HCKEMDKldaC1rwVgGZq4b9/scZxkWB8O5mhcHoNJYF0a7CA6kQY1YKw06dqADnmJa X-Received: by 2002:a0c:ed44:: with SMTP id v4-v6mr7360379qvq.22.1538040398137; Thu, 27 Sep 2018 02:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538040398; cv=none; d=google.com; s=arc-20160816; b=PQjzv31iT44UADi1vdI+75FUUB4CL1jD13257+Rhbx3sYVG90atq+gOXi2UWu6v5H+ l+e2v0cZsOe2bbLo+V8h1wfofilrmKJ6WwIGORSXXlMPNnoZEnxYRuzEMNO4XUw5QYmK dTCaf60f005U+/044mYOEISECXir/o27fQg4FS0eqlshA1CxaANTU+AYnRHZ/5RVr81n KYBkobr1+4Dh3k1RBUa+tMOZupIaK53FpGa94KPFjLCeARrfKMJUsbqkiN6p30OKJ1uT GP//gUyLD+T0ibCb1YnaiqfPIWj88doebtUgC+UBXS3HopGgc3c58zKrBeJg+wfRDstF 0/sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=nz0n2L3JxULsBS/pUHRQ1cL3pjanD6P0YON1fc9C7I4=; b=fjOTn+KoWPScgy8yKZYyKFFgkhC3eDPudFijrUcxjvmiRtWhYpohtMDo1q7JBGTj6f u3pe/38ukBEW9kqODBVzm7fGUCexJjqujyD9S1qU+tDdlu1mxQ96TCLa6hjKWoToOSSK Q/mPfWt14JIw8QKXs0Er49ILsNapNaNbb9t+Z23gnXg+netqZY/IREV60TUMIzxCjXIx HkXqpAvOxbaxTBm9rG6rYaUWshhMUjAo16pmgtZmM57R0ikz2qJm/y/3AzWAUVwDvqsj 0qjZ3X7/4jo7GQ9eJTcrYtupdMXxppHANpwnIX68kTB3AAFs/82X32JtJOOkVPN+t67D jFkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id e12-v6si1048174qkm.237.2018.09.27.02.26.38 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 02:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 48C0CA6DFD; Thu, 27 Sep 2018 09:26:37 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-205.ams2.redhat.com [10.36.116.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7ACF920154E7; Thu, 27 Sep 2018 09:26:32 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: 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, David Hildenbrand <david@redhat.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, Rashmica Gupta <rashmica.g@gmail.com>, Balbir Singh <bsingharora@gmail.com>, Michael Neuling <mikey@neuling.org> Subject: [PATCH v3 4/6] powerpc/powernv: hold device_hotplug_lock when calling device_online() Date: Thu, 27 Sep 2018 11:25:52 +0200 Message-Id: <20180927092554.13567-5-david@redhat.com> In-Reply-To: <20180927092554.13567-1-david@redhat.com> References: <20180927092554.13567-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 27 Sep 2018 09:26:37 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: online/offline_pages called w.o. mem_hotplug_lock
|
expand
|
diff --git a/arch/powerpc/platforms/powernv/memtrace.c b/arch/powerpc/platforms/powernv/memtrace.c index 773623f6bfb1..fdd48f1a39f7 100644 --- a/arch/powerpc/platforms/powernv/memtrace.c +++ b/arch/powerpc/platforms/powernv/memtrace.c @@ -242,9 +242,11 @@ static int memtrace_online(void) * we need to online the memory ourselves. */ if (!memhp_auto_online) { + lock_device_hotplug(); walk_memory_range(PFN_DOWN(ent->start), PFN_UP(ent->start + ent->size - 1), NULL, online_mem_block); + unlock_device_hotplug(); } /*