Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4185724yba; Tue, 7 May 2019 13:40:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4SlMIM9uXpo50fSECDIpc9nAABgvbVBQc4Ame0dVwbWISubrpMc01foLBBbZiMFe1mN0i X-Received: by 2002:a62:3381:: with SMTP id z123mr11391482pfz.42.1557261609884; Tue, 07 May 2019 13:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557261609; cv=none; d=google.com; s=arc-20160816; b=PasVc/r1xULEsA5QIFjK7ML6jWl0IrLNrfBNKtM1Zuh5CbMDhodBDO1qYMF/RU4V0U RYu+XnqjFGQTqfXc6e3SxVxyuMfNSoM8JuxZGdIExbW1yigOOSioeL4A5Ek2PQGHLSCh JWkbJqJrEv8PgPdmRlE1Bs+c0y+/MFB8XA/uSPg8+JGF+FiciqbhpVhfuHmkg+2Zlwtf wmVmrCcVHdd9wHjoH+npisT9J0wZb6kQD1qdD67uOrbT42Ujrd5PiyVaWAXWiLZpdWe1 UAJ3j8tYcRhhVTWeyMZLVyCBHawAxg1HCvP8XxX1gMkznATHqhWFJaMh4Ynm6Wxkydl3 2x5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6pfRHejW3cZFOE77y3IUUX4go4AGbYiRoY6juBt94WE=; b=i4VRWxYuV1R5JOvOc+a8T3pHteHfQf3FGoje4lLhnYIPzOWpoyRYZjp8YxXJOruBcn im+D5HBuUJAq+9KOqkbF80IL35CwYPno+Mw23Sgt8B06oYA4BbBKdvGwo0IqALKLAbSP Tzq9ZU2GvzpWhCkFuo3yx/zUr9yfLg46KSfSmkb8MkTOTy79u9CkJuk9tKKVPtsJmnkW QUekzWAvz0U3J79ZxukTJ+XAG+/aTagnG0uXkTVrXaeKiQqO6nGVwG72SI6kNv2zSxxr AW2vInvqcpblajbWUqeSfxKA3xNKt8psvUNQ6XPtlStTEWfAvWUAwdVyLcvX5g8KvVyy hOWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=n2cLf9Qv; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j30si20891801pgl.338.2019.05.07.13.39.52; Tue, 07 May 2019 13:40:09 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=n2cLf9Qv; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726603AbfEGUiz (ORCPT + 99 others); Tue, 7 May 2019 16:38:55 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40362 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfEGUiz (ORCPT ); Tue, 7 May 2019 16:38:55 -0400 Received: by mail-ot1-f67.google.com with SMTP id w6so16295187otl.7 for ; Tue, 07 May 2019 13:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6pfRHejW3cZFOE77y3IUUX4go4AGbYiRoY6juBt94WE=; b=n2cLf9QvpatFw6Fx6Im50C3lqxaAWG43jr2hC2ev1xZpfJ6J8FUzxhXEUavTl94SZm SVHlKHKIcM/ZhfovCw4MijKPgzW/E+HLz4qZ175x7tfNV+dQC05A0tETwYssL7clan9W UsEpcZNB+TJeQSbZEqorEcfiOUdbu+Sy8m9YAZ3S+el0grhl2bD78JddE66O4Q+1avuY KR225hZ12kjGn4PRHpeZLqKoFnuS+tJCq4z76VyCpIv4O/vr+Au5mfwKYyPGTxiEapDr R3GKFkX289EisuP8nBoU3VOoPxvd3l0FVJ+ulJz6IltOlc4nobKQXXstnEsx5ZFdmsTb rEdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6pfRHejW3cZFOE77y3IUUX4go4AGbYiRoY6juBt94WE=; b=ac+so5/TQEfdKrbGxUgLeXPDlmbnK21scngybYsGKmr/deAnkQl6hi9loxMCPUv4s0 jhSkojyOmEzfmcee7JPV0yQkOlK5nzq7iWSPlsW+R24j+WQgQFDgh8j/5XW4/+ND58pP aETIwrp1DXxOOhixDZQDE3amThqcjUGIL++ElBIixs/DZegITBnbyTz3WK4VDVA/oi84 wrUdVY53hJ5lyTy6BIO4VDxs9NnSVL2rKFt3X6uBhe8RgrxHZQhTAx+mueO8nUIw4mYm FIrsOVBZJ5zSAgueuZvZ8R6QIx6+gTOIUpw7boqFFNNAnCybSABst5vvQivPuw7DvUR1 6K1A== X-Gm-Message-State: APjAAAWx1hl9bCLSvde+hrrvLaDrIoOh450M7etdghN9JVjd4cUA9izA PKHEUZfLtmjLxCWxYLA1Shu+9wSAfVDyDJ/g6HrvuA== X-Received: by 2002:a9d:5cc1:: with SMTP id r1mr21322434oti.229.1557261534468; Tue, 07 May 2019 13:38:54 -0700 (PDT) MIME-Version: 1.0 References: <20190507183804.5512-1-david@redhat.com> <20190507183804.5512-2-david@redhat.com> In-Reply-To: <20190507183804.5512-2-david@redhat.com> From: Dan Williams Date: Tue, 7 May 2019 13:38:43 -0700 Message-ID: Subject: Re: [PATCH v2 1/8] mm/memory_hotplug: Simplify and fix check_hotplug_memory_range() To: David Hildenbrand Cc: Linux MM , Linux Kernel Mailing List , linux-ia64@vger.kernel.org, linuxppc-dev , linux-s390 , Linux-sh , Andrew Morton , Oscar Salvador , Michal Hocko , Pavel Tatashin , Qian Cai , Wei Yang , Arun KS , Mathieu Malaterre Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 7, 2019 at 11:38 AM David Hildenbrand wrote: > > By converting start and size to page granularity, we actually ignore > unaligned parts within a page instead of properly bailing out with an > error. > > Cc: Andrew Morton > Cc: Oscar Salvador > Cc: Michal Hocko > Cc: David Hildenbrand > Cc: Pavel Tatashin > Cc: Qian Cai > Cc: Wei Yang > Cc: Arun KS > Cc: Mathieu Malaterre > Signed-off-by: David Hildenbrand Reviewed-by: Dan Williams