From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82C03C63777 for ; Tue, 24 Nov 2020 08:43:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D47B42075A for ; Tue, 24 Nov 2020 08:43:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="bkzNqMpX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D47B42075A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EEC666B005D; Tue, 24 Nov 2020 03:43:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E772E6B006E; Tue, 24 Nov 2020 03:43:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D667B6B0070; Tue, 24 Nov 2020 03:43:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0025.hostedemail.com [216.40.44.25]) by kanga.kvack.org (Postfix) with ESMTP id BD0276B005D for ; Tue, 24 Nov 2020 03:43:53 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 7996B3637 for ; Tue, 24 Nov 2020 08:43:53 +0000 (UTC) X-FDA: 77518673946.08.drain39_0b03e392736c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin08.hostedemail.com (Postfix) with ESMTP id 5B38F1819E76C for ; Tue, 24 Nov 2020 08:43:53 +0000 (UTC) X-HE-Tag: drain39_0b03e392736c X-Filterd-Recvd-Size: 2551 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf42.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 08:43:52 +0000 (UTC) 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: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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