Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp848918imm; Fri, 11 May 2018 07:19:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr50fthvIRiQKCmhSL9ku5Iy/n4HEudj9CIgoZkbulj+vTpHzHQRjt6Hzmd89cr78s31hOs X-Received: by 2002:a63:7d47:: with SMTP id m7-v6mr4609676pgn.443.1526048354064; Fri, 11 May 2018 07:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526048354; cv=none; d=google.com; s=arc-20160816; b=cd2xTB+vEWecy8tcYOfpmoE8hlf/CvghSe18jn+UcaUe6VJ1VrG+rUsOzH+qqt6GxM QXyosDxwk5ObuLMhwgKEiQs+BCvAXLT3T42n5X1HRx64VdwEfRt/NIUTgTK5Hmb6RJA9 Syuu1JlMEFOYcMfi/4CSBubob7D9wRmMmI+vh7gqoftime47CtCLmDArOz1tuExbX/cF ng2X0ibqp5+cp+pzcoDsrMSiHKjJeAo4eVd3yXSWpDYzD6kO+J4JNb3HSGdQo+uprlwI LNKCo8cdq69P25HZn0NgnABdC6UCNF03xvx0Rui2vanODcM9foTqDvqGM++lKTvLRkvA 5CFA== 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 :arc-authentication-results; bh=bFZ74Qt0k/uQyuWnujzSKN6X2lwTlF2sTjc7hqYTx2M=; b=FBeorXPYq38llOZBC3ciZWR+ga0bCTfoB4k/cv0j5FCiyKQ/wVN0gyeHOPhxhMLsdf gKo8YHJMjl9SWmNXKGlNGGdPeBrj+Pdpq6SWJX4bbZ8cPpOHwr6twdCPRHJ/BsTgtw5w NEDEoUfUftlMD/2nLAGsqUqYHPOoVd4Rm0m1Q9bCNhI/3ynhqpF0cxKvb7GMQc2TQl01 IYwwQ1xr+J6HXmQlC/sb+U0u6jSxLpYp2aBzby1YiPz0nmGsS8l02gBsPk6utySp1tlo q3KJml0V38V/kSdhGP96G9/C8PG3DvlJVkV+oBhZQrb1Uz742yA8gH7HmY0ZtU4guBqD IboA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nI15SGtx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si2686773pgm.604.2018.05.11.07.18.59; Fri, 11 May 2018 07:19:13 -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=@oracle.com header.s=corp-2017-10-26 header.b=nI15SGtx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbeEKOSj (ORCPT + 99 others); Fri, 11 May 2018 10:18:39 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:43312 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbeEKOSi (ORCPT ); Fri, 11 May 2018 10:18:38 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4BEGWGS096657 for ; Fri, 11 May 2018 14:18:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=bFZ74Qt0k/uQyuWnujzSKN6X2lwTlF2sTjc7hqYTx2M=; b=nI15SGtx2I9YnfxwZ+MAQx2oarJF/AGEbgFhNcmKAsQR8rPZoZOhYn4uqOIaB3GBDahJ vNX5PZ9CQe2lQgO04khcVNuiSMZMfSu9Fqpwx90FoYRxOIPtOhSdnyFanCMbFbKL/T/R 9umJ47xWYGXLWGjaCTU4xzS9nXR9RrkoYjnbiFaZqa9L8lLuFQy6iGKhBNGLb3HKOEr2 VpZMK6qVqkfOfLu+XdAR5oDWxQfdsC2mvv7DtNiU4+EI+AWXJ5sasAgIhH5d3azpqOOp 1WqA3v7l+UtIhdNzCLrg7S+FU3XHJQqsdV1rwnbjoLiI5QaFS5Ujr2w3RzVbujiOMSIY RA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2hwab5gmxn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 11 May 2018 14:18:37 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4BEIXGI006222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 11 May 2018 14:18:33 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4BEIXHv005649 for ; Fri, 11 May 2018 14:18:33 GMT Received: from mail-oi0-f54.google.com (/209.85.218.54) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 May 2018 07:18:33 -0700 Received: by mail-oi0-f54.google.com with SMTP id 11-v6so4835862ois.8 for ; Fri, 11 May 2018 07:18:33 -0700 (PDT) X-Gm-Message-State: ALKqPweKBx+3U/q/Ss/rqrEBLGmRLZtx6B0aP3Yy5EAgEEP42Rbz+eg6 9rEbPc1IplHC/RFpD0UZqaa4OncbgNjSrOFWLCM= X-Received: by 2002:aca:db82:: with SMTP id s124-v6mr3517440oig.339.1526048312550; Fri, 11 May 2018 07:18:32 -0700 (PDT) MIME-Version: 1.0 References: <20180510115356.31164-1-pasha.tatashin@oracle.com> <20180510123039.GF5325@dhcp22.suse.cz> In-Reply-To: <20180510123039.GF5325@dhcp22.suse.cz> From: Pavel Tatashin Date: Fri, 11 May 2018 10:17:55 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] mm: allow deferred page init for vmemmap only To: mhocko@kernel.org Cc: Steven Sistare , Daniel Jordan , Andrew Morton , LKML , tglx@linutronix.de, Linux Memory Management List , mgorman@techsingularity.net, mingo@kernel.org, peterz@infradead.org, Steven Rostedt , Fengguang Wu , Dennis Zhou Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8889 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=964 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805110135 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Thanks that helped me to see the problem. On the other hand isn't this a > bit of an overkill? AFAICS this affects only NEED_PER_CPU_KM which is !SMP > and DEFERRED_STRUCT_PAGE_INIT makes only very limited sense on UP, > right? > Or do we have more such places? I do not know other places, but my worry is that trap_init() is arch specific and we cannot guarantee that arches won't do virt to phys in trap_init() in other places. Therefore, I think a proper fix is simply allow DEFERRED_STRUCT_PAGE_INIT when it is safe to do virt to phys without accessing struct pages, which is with SPARSEMEM_VMEMMAP.