Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2591174pxb; Thu, 10 Feb 2022 00:43:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDXtwSlGt2eFWqjCLVAitxtXwVLVG1L22TE7EUr9/u/ztoC950k1KErTAEsA8JNl4m38u1 X-Received: by 2002:a17:907:3e83:: with SMTP id hs3mr5569901ejc.16.1644482606384; Thu, 10 Feb 2022 00:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644482606; cv=none; d=google.com; s=arc-20160816; b=PI3xMrtPHbLqDtgspkIkyUHHL/L6M/Pvpadrjnn1sfYWmeIAaLNKB8LjkOaSqGn1et oPA6yNxmiz6vDLCoRfKL1mhR1yKTops4z2cJ24tXPavfa7E/O3zoybiZnBW6Ny1cEpLl R+19LJ5QesX9Wj2Uof7GKfRseNqU6sEz6uC17i3kzOv/aXHRTvkM18R1yJBKfz/UCm3v C/PDjvx8id6Ftj2q1O/7xpeKnAB65GZLHdxMdo8vSysGUTvgY1TAXZhuSvcKc0UzUei6 q4U2UUThpRWQQVTNdkMJ0Z5GeU/BPvXfFA8zetfKTE9TJQuEQp+/bAMDRxF4Nvrg5zes p8aQ== 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=EDHtHvuI0rX56upto/aTnkApaVCYeNt0NfBKbGzA2cw=; b=fEPWB04pH8mKLyt2ugR4yK6f3+cPVyR5QVPBhwBX+rpET/Y2MqsI0jVMOgzQoR9Vq7 G6iY5lrG/qs7Q/Nnn0EIF07wdRAZxZ1J6SzRb5tlGPya+2rN+/1yhr0ri6kL8ZTLhqQv 3Vs1rq9yewjcMiP6XhgiwKMwMovBlDf0Z6LDzMbeP/NoGQUpaaAAbZS1JwHZtBji29SR hC96Ppc329hkYjsplJv5Xi4OdivSmZbK4wU+Pq+IDtVQ8yI3vHDnB8wfmOp9T29A4/tf yl6dBW8DtHpC+91BMfyWm7kaeAoIbKnGBk3oTXY9wW0p09jkSQsM7I7ovf8p7JutkxoK tbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=eoyRrh0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce24si14130974edb.312.2022.02.10.00.43.00; Thu, 10 Feb 2022 00:43:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=eoyRrh0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236580AbiBJHtw (ORCPT + 99 others); Thu, 10 Feb 2022 02:49:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234424AbiBJHtu (ORCPT ); Thu, 10 Feb 2022 02:49:50 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C95103D for ; Wed, 9 Feb 2022 23:49:51 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 45DF71F382; Thu, 10 Feb 2022 07:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1644479390; 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=EDHtHvuI0rX56upto/aTnkApaVCYeNt0NfBKbGzA2cw=; b=eoyRrh0VWU/qJAoLWCl9fgGdtYB1r6YQ73vYM6K7VJQdi8D3ZgJQpKti2VXmaxHz6O82Tl Mrz4lRsft7pzJHNn0OGo6csM5urkGCFprE9QJvBKirma9L6Jy5uie/5LuxR76/dvRk1x12 mVW46fCjSh7pKbD39YAlgCoLAMHPJ1E= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 38A70A3B8A; Thu, 10 Feb 2022 07:49:49 +0000 (UTC) Date: Thu, 10 Feb 2022 08:49:49 +0100 From: Michal Hocko To: Hugh Dickins Cc: Andrew Morton , Vlastimil Babka , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Alistair Popple , Johannes Weiner , Rik van Riel , Suren Baghdasaryan , Yu Zhao , Greg Thelen , Shakeel Butt , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 00/13] mm/munlock: rework of mlock+munlock page handling Message-ID: References: <8e4356d-9622-a7f0-b2c-f116b5f2efea@google.com> <147388c6-eb7-5c58-79a-7a8279c27fd@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 09-02-22 14:59:19, Hugh Dickins wrote: [...] > Ah, but you're worrying about any previously-mapped pages when > VM_LOCKONFAULT is established: those ones get done by mlock_pte_range() > in 07/13, same as when VM_LOCKED is established - I checked again, > VM_LOCKONFAULT is not set without VM_LOCKED. Right you are. mlock_fixup->mlock_vma_pages_range is the missing piece. This is called for both do_mlock and mlockall paths. So all good and thanks for the clarification! I will get back to this sometimes next week. -- Michal Hocko SUSE Labs