Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp371648ybd; Tue, 25 Jun 2019 23:13:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVfYqQJY4hxM7MQQmJYufCmk8acSe3ArHLCcLU4v21/1WHeGixwDTPLFtTiGW42XJldOj6 X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr2625945pjq.134.1561529596064; Tue, 25 Jun 2019 23:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561529596; cv=none; d=google.com; s=arc-20160816; b=I8KuxquvjNVABwO0JQQv5bzvLEHe79WiqoARm5p/8JM/IYPiytQZPZ/DZYt8To04h9 pwtZzGu6vxY84NXiO+o3UC81kRrG6OjckGzSXZavOsMObUq4e9NlJwVWsvGknteB2FVO 1VYk4vxuBsOWgPM/kpMAIIgUcmqvL4z7bGhQwI6dfPXeNUjgIWmTc0evAs+bhWfPCtNJ jJ0eIRGlSB3eC7eQn0fbpVKjky9VQDQRyQDyAesVtgkwPtCgOGnNTbrQoH/RWQ2K9e3M XZxIiOOSnVhH88z9TN2FX3/8bPXhrqn4kdEi1MnX1vVeTpUd7ZC5QT0BCyQJFtMkxB0k SiyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=iQPsl1iMENa5hzy31vUEN7C6dkGUjfPrZ3bDwYeU8lE=; b=WGAimLVdPSgKLaQKdEdIb0ihtSTlmXpM3Z6+8oBGm+V+xWPHd9dbXW8YJV7A3vRq81 /YBQRfDxGHfBYlJx5IUqmfzILqrqBM1Tl4dHjFBADWSi8mbWA6nUmYSuWsPvpaYYOTsj j1kFhU5QLbm58eBJ2NO6guHx/JAE0oK4zZElYBKMRJ46a/qmhQ+sjgHYUBtx2gzHshdx P8Xj4wMhK166jLowRsVWN6z384biGJKk8ujjlDWUcyhf0Tti+L26a9KSegsBLBC/1pXP q22zIqIumlMvaAooTue1iXUr/O/JYusnDlxtKcoQZqfAIYmBwrJ0aQJd9yGzctPLi3rG 4alA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m35si1190457pje.84.2019.06.25.23.12.54; Tue, 25 Jun 2019 23:13:16 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbfFZGLr (ORCPT + 99 others); Wed, 26 Jun 2019 02:11:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:20490 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbfFZGLr (ORCPT ); Wed, 26 Jun 2019 02:11:47 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5Q67m6G096368 for ; Wed, 26 Jun 2019 02:11:46 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tbykmxtes-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 26 Jun 2019 02:11:46 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Jun 2019 07:11:43 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 26 Jun 2019 07:11:38 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x5Q6BbO860162242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Jun 2019 06:11:37 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 82E1A42041; Wed, 26 Jun 2019 06:11:37 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2E6394203F; Wed, 26 Jun 2019 06:11:37 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 26 Jun 2019 06:11:37 +0000 (GMT) Received: from adsilva.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id E1F39A01B9; Wed, 26 Jun 2019 16:11:35 +1000 (AEST) From: "Alastair D'Silva" To: alastair@d-silva.org Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Morton , Pavel Tatashin , Oscar Salvador , Michal Hocko , Mike Rapoport , Baoquan He , Wei Yang , Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 0/3] mm: Cleanup & allow modules to hotplug memory Date: Wed, 26 Jun 2019 16:11:20 +1000 X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19062606-0012-0000-0000-0000032C756E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19062606-0013-0000-0000-00002165ADDA Message-Id: <20190626061124.16013-1-alastair@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-26_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=479 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906260074 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alastair D'Silva This series addresses some minor issues found when developing a persistent memory driver. Changelog: V2: - Drop mm/hotplug: export try_online_node (not necessary) - Return errors from __section_nr - Remove errant whitespace change in mm: don't hide potentially null memmap pointer - Rework mm: don't hide potentially null memmap pointer to use a start & count - Drop mm/hotplug: Avoid RCU stalls when removing large amounts of memory (similar patch already went in) Alastair D'Silva (3): mm: Trigger bug on if a section is not found in __section_nr mm: don't hide potentially null memmap pointer in sparse_remove_one_section mm: Don't manually decrement num_poisoned_pages drivers/base/memory.c | 18 +++++++++++++++--- mm/sparse.c | 21 +++++++++++++++------ 2 files changed, 30 insertions(+), 9 deletions(-) -- 2.21.0