Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1475589pxu; Tue, 24 Nov 2020 00:47:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/1SIFhKC6ZQEuqgrMXCbI5vy47yvOuUrPQQKfSOW9WUXaiL5T/HyPE9mOkZ0i+odW0To8 X-Received: by 2002:a17:906:af49:: with SMTP id ly9mr3117508ejb.238.1606207643518; Tue, 24 Nov 2020 00:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606207643; cv=none; d=google.com; s=arc-20160816; b=CoMRvj83g1l+EbVjrUMYLZ9HW3+8nTQK2997sw8K2z/N9SYHGXItCwh2FA2ITDiEZp g+HbV+uulJayk2K9lVIydOTvWHWzXHk6hpsdK0MnAEm4WgSNLx96jtkCWYhFXYrufQw7 7XcQtn3TRJEkdHevZ4hIPQjVlf00bv9UQXI7T5H2Cr+ckwGxuvRR9dlr7fsN6Z2TZx1J CGxWj5+PUWzO/yQlcf1/Jgy2RKX/U/HxdqzHX/bln392hiOl/EwRYAaLgwxN8hwtEWun M4ynLITp+nQcP1ERSxNx9X74kk0OiF5Qoiza5fRDwUsHTjJnv1rS3W9FPp+AYk8xoEPz FqtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YLobq2Kgfx6O6DNcBUNrxUYsXG3j5iSZLKWRmFWVAHA=; b=zhBkN3W9yN67is6aaVo9yR2/x+pWSYASLVAATyKQ6Y0jH/IojMNNAdxUBlvGEMCF0y I5I5HxEdnmcg5IRd81VWlgirrm8iVAWah0AuDt+jNkUfQ87i+QwEuufYO5j5iZeWJUNK q9yNP8WTVz6AFlSl7NEY71GYXQ6JlnYjtaeMfQqIi/7HxyXFSy+OvZg7Mo/ezqN0PGXd 6TeJAm/rnQMrfWnzzhKeibn7hCYN9aJPtZ/OuCZst8nCZRFKcsyNRutGy/s/lPf0A6RE J6+ygPuyKNQfdj7beqFdy+0GaHjA1ztRCRb/OHqzbgvYBUcUuXu6YGABVqdo0CsgH0n4 Jcxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bkzNqMpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si8208553edj.168.2020.11.24.00.47.01; Tue, 24 Nov 2020 00:47:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bkzNqMpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730798AbgKXInx (ORCPT + 99 others); Tue, 24 Nov 2020 03:43:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:58420 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730492AbgKXInw (ORCPT ); Tue, 24 Nov 2020 03:43:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1606207431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YLobq2Kgfx6O6DNcBUNrxUYsXG3j5iSZLKWRmFWVAHA=; b=bkzNqMpXgfNtJzNRTF9vcCxUnWHHoEhoJXkgs6C081As/BL/OcQeAGTcUtO+v2a/UJJvp6 Fl/iezJQ8/f0JiJ+Di2fU8oVkkBdLMz0O8+GJbtXnFzvaQQmZJFfdm1qoMVAtotBqz6H9v 4WSbE0TdYjOa0fIQ0bQv22AogEEgJAk= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C49BCAC2D; Tue, 24 Nov 2020 08:43:51 +0000 (UTC) Date: Tue, 24 Nov 2020 09:43:50 +0100 From: Michal Hocko To: Pavel Tatashin Cc: Vlastimil Babka , linux-mm , Andrew Morton , LKML , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , sthemmin@microsoft.com, John Hubbard Subject: Re: Pinning ZONE_MOVABLE pages Message-ID: <20201124084350.GU27488@dhcp22.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 23-11-20 11:31:59, Pavel Tatashin wrote: [...] > Also, we still need to take care of the fault scenario. Forgot to reply to this part. I believe you mean this to be fault at gup time, right? Then the easiest way forward would be to either add yet another scoped flag or (maybe) better to generalize memalloc_nocma_* to imply that the allocated memory is going to be unmovable so drop __GFP_MOVABLE and also forbid CMA. I have to admit that I do not remember why long term pin on CMA pages is ok to go to movable but I strongly suspect this is just shifting problem around. -- Michal Hocko SUSE Labs