Received: by 10.223.176.5 with SMTP id f5csp1986182wra; Sun, 4 Feb 2018 17:29:01 -0800 (PST) X-Google-Smtp-Source: AH8x224/AXDz0Wc0hNpPOWg7cUueBvBKJRHUaPPbKN0pnmTclM3WjlTvQIqZeOHYee7M+QUW8xjB X-Received: by 10.99.116.23 with SMTP id p23mr4158231pgc.16.1517794141169; Sun, 04 Feb 2018 17:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517794141; cv=none; d=google.com; s=arc-20160816; b=T/IZFTfXZ0QsmPkVcCaWdrNTR4p3clhLA+1uCmeHN3MqkMsvIWDF5ecvTKDe5ajvxl xMqTu8w3ddJImkK9f8bsGaG44q4HUtN/Z448qhy2vAb2P1pjIE/ZYc1+78QV9pb3yTYc ULUc+vf/M3UF/sLlbfVcWuTXR+F2X0/PPSeCnDRM01tFIAz6f1FaQrmAX9VLCqig0sm8 ofWc3G6xfY6yPztDV3scnXIUlIxmrnFGGbw+L6KOxmm3PY5riXzYz1tmFEPkuDf7NsWu 0ohJAPnpMp2VoE1Ro2PEqvvpzDiXbTG+hO6kcIasntYVsQWh6leUoDB8S/MtprrvkiRh xaCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=gvtVAZT9QPeA5C2JSV8hcrQH89oOupe3jmTmyDKjeXs=; b=Txk1ElfpOuaNA3X6OITfCOE1wRbR2BjjZ5z0ZTciUHT/mtt7T1WAXFfDWtHTncwIHp RvSAiaW7W5oZsYFgi1ZkybDKy7BnaEmcBRePgiG1VrlgwmZgaKLeXnnrPOEfxYEf4jaN Utj6NkxN4bZ//MwwN/nn0wE726OHtnyWg3X1yTup0nSVJ/goa9rA045K02CGmvO8Nicn bIX7FE3RP82Ff8Laln456NcahnnPKMSlJrvUd4Ae0PbS22Op3reLiKvwM2zgfNj22JPn rGmK94pyStNpYwj8qEY4r1OHDWIi7aFRGqhvSfG9oUkWTkQs4CHNeD9jVf2k8VNCsu+Y hbDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si1750351pgr.501.2018.02.04.17.28.46; Sun, 04 Feb 2018 17:29:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508AbeBEB2T (ORCPT + 99 others); Sun, 4 Feb 2018 20:28:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:43363 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343AbeBEB2B (ORCPT ); Sun, 4 Feb 2018 20:28:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B5371ADCD; Mon, 5 Feb 2018 01:27:59 +0000 (UTC) From: Davidlohr Bueso To: akpm@linux-foundation.org, mingo@kernel.org Cc: peterz@infradead.org, ldufour@linux.vnet.ibm.com, jack@suse.cz, mhocko@kernel.org, kirill.shutemov@linux.intel.com, mawilcox@microsoft.com, mgorman@techsingularity.net, dave@stgolabs.net, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH 04/64] mm: add a range parameter to the vm_fault structure Date: Mon, 5 Feb 2018 02:26:54 +0100 Message-Id: <20180205012754.23615-5-dbueso@wotan.suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180205012754.23615-1-dbueso@wotan.suse.de> References: <20180205012754.23615-1-dbueso@wotan.suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Davidlohr Bueso When handling a page fault, it happens that the mmap_sem is released during the processing. As moving to range lock requires to pass the range parameter to the lock/unlock operation, this patch add a pointer to the range structure used when locking the mmap_sem to vm_fault structure. It is currently unused, but will be in the next patches. Signed-off-by: Davidlohr Bueso --- include/linux/mm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 9d2ed23aa894..bcf2509d448d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -361,6 +361,10 @@ struct vm_fault { * page table to avoid allocation from * atomic context. */ + struct range_lock *lockrange; /* Range lock interval in use for when + * the mm lock is manipulated throughout + * its lifespan. + */ }; /* page entry size for vm->huge_fault() */ -- 2.13.6