Received: by 10.192.165.148 with SMTP id m20csp612991imm; Fri, 27 Apr 2018 04:48:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMVINAiNFBqasoI6jncFds2UWJhMz590r4eDuxbhtbD1qCzySI0PGM9Nwl98oh7WEgYXHA X-Received: by 2002:a63:bf0c:: with SMTP id v12-v6mr1928621pgf.54.1524829727854; Fri, 27 Apr 2018 04:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524829727; cv=none; d=google.com; s=arc-20160816; b=k98QaiO8KpRUJvvG5YLm8d2YrxyyJ8yuXAlRYu5tEG7+NI2X/uzTnN5uCbI8KxSvis pWE7dU8FDyObdm+XWhO0wRmWyUP4Ko1eYyBOsanldctgBipGZh8BPjaWW8RtVb+GVK90 L7jwiUNM8RoIbfx2ZFZUzKO2Q0vuVNaMt+NI2tTFsP/7KAryq3P2bb/QmFVC3S8WKZBB VjL3oS8QH/4mNj+Lb9zcYnwbB9S40R2s/5lGc+HvKvNhKzI9dy2GY7e1R13KGXW8e93X B6SlRS8/rJxO/6tOHSQOB0Pj0H0CrUUapaspDYhe9rcbGhCer60K2CFIYZOapUqBfaaV 6e0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=XXhtVaVN6pRwiqWlIqUgT2YDPZmbaMXYN/SA1QAEizY=; b=AqBpaVrCxgXFxevVeBzIq4vD425dM3a9uQBJaL3q+q/fZ80GlxEb5aqKR0TmlG8lQW siUqmUg4t95WeYz90/KIB3lzA3vt5IId/mX73kt/FQna57tbtjeV1uuKRGRbU1sGT18E a1d5gTmQDI04Xd8u+RVeQQmyx1CdoMpjjAPainezhkW/QRThdFSkEaMuhLWpGbGFd8QE 2a+nMBNGWFE8PqRpL2oV3IU9BotfiPfGad4dldHPwiTjei9aQgb2NAbXjWYza6+nIfDZ VGma/BUd+8BsS3p4wxwfA0xc+m65FxvFP2Xk/lWOLPfGWVBEs898sUEUR2lSjklAbSh+ NdyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=OTG8Ib+z; 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66-v6si1147583pla.313.2018.04.27.04.48.33; Fri, 27 Apr 2018 04:48:47 -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=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=OTG8Ib+z; 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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757985AbeD0LqX (ORCPT + 99 others); Fri, 27 Apr 2018 07:46:23 -0400 Received: from 8bytes.org ([81.169.241.247]:38640 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbeD0LqV (ORCPT ); Fri, 27 Apr 2018 07:46:21 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 042392DC; Fri, 27 Apr 2018 13:46:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1524829580; bh=U66AD4BkBTI3ZwbXeu24ZnIHpbnjO/1iSTiX3AyA7ZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OTG8Ib+zBMAo5Iw8dNdfRYN9i4oC7Ixv08sy+Dqn5JV1Ij8yb4VEpkKpbPrnYrHwl IRO9kmYL6VQXRsw5cT8FGL95pGNKy2ESvPzNCrl2jN/vJ5yErkRU2+fvpsTKFvDobX fqnB6PsX26jA1v80XJORMDz/dmKEPaWQ6G1WPpf8fa39GT2JJ4BEqw1m3kRc/GEtUo 9Vmrx81f1EgoeK9YiRYqy0roDOGXjOzIcp2EVjMRR2o4ln3e2XLq0BDEI8zOru+zfh dHDJy2FfopLI0VX5JETzXfnzXQE2t4bNXGJTco2oHcZOK6Icy9BJI9O8zpp6fVpjTK /TNwn6Q/Xwbfw== Date: Fri, 27 Apr 2018 13:46:19 +0200 From: "joro@8bytes.org" To: Michal Hocko Cc: "Kani, Toshi" , "linux-kernel@vger.kernel.org" , "bp@suse.de" , "tglx@linutronix.de" , "linux-mm@kvack.org" , "guohanjun@huawei.com" , "wxf.wang@hisilicon.com" , "stable@vger.kernel.org" , "x86@kernel.org" , "akpm@linux-foundation.org" , "willy@infradead.org" , "hpa@zytor.com" , "catalin.marinas@arm.com" , "mingo@redhat.com" , "will.deacon@arm.com" , "cpandya@codeaurora.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces Message-ID: <20180427114619.GV15462@8bytes.org> References: <20180314180155.19492-1-toshi.kani@hpe.com> <20180314180155.19492-3-toshi.kani@hpe.com> <20180426141926.GN15462@8bytes.org> <1524759629.2693.465.camel@hpe.com> <20180426172327.GQ15462@8bytes.org> <1524764948.2693.478.camel@hpe.com> <20180426200737.GS15462@8bytes.org> <1524781764.2693.503.camel@hpe.com> <20180427073719.GT15462@8bytes.org> <20180427113923.GF17484@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427113923.GF17484@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 01:39:23PM +0200, Michal Hocko wrote: > On Fri 27-04-18 09:37:20, joro@8bytes.org wrote: > [...] > > So until we make the generic ioremap code in lib/ioremap.c smarter about > > unmapping/remapping ranges the best solution is making my fix work again > > by reverting your patch. > > Could you reuse the same mmu_gather mechanism as we use in the > zap_*_range? Yeah, maybe, I havn't looked into the details yet. At least something similar is needed. Joerg