Message ID | 20230227173632.3292573-26-surenb@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F5CCC64ED6 for <linux-mm@archiver.kernel.org>; Mon, 27 Feb 2023 17:37:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 13161280009; Mon, 27 Feb 2023 12:37:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 10A5D280001; Mon, 27 Feb 2023 12:37:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EED60280009; Mon, 27 Feb 2023 12:37:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DFD9D280001 for <linux-mm@kvack.org>; Mon, 27 Feb 2023 12:37:38 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B95494034C for <linux-mm@kvack.org>; Mon, 27 Feb 2023 17:37:38 +0000 (UTC) X-FDA: 80513778996.18.4738611 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf17.hostedemail.com (Postfix) with ESMTP id 065804001D for <linux-mm@kvack.org>; Mon, 27 Feb 2023 17:37:36 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="rSn/HhKu"; spf=pass (imf17.hostedemail.com: domain of 3YOr8YwYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3YOr8YwYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677519457; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7ZDLcNGctmKqQEDQSm/x/HJRE1p1urqN7vMq9ze3IhQ=; b=BFhMqNpO3EEmkZiX3jL975DGW5xaBRNkM2+OdU9BtlQ4ZAlSwVt6ZkUUtvYtFSYpY+g1BA vKCpLoi62Jr9J+U731GDH1W868rKrOOimO5C050dPR8scv2oBp7RfDDnmCVfWgREAziKl4 W2Mr9ISTrqSCcJzaAP4wT2+xSp4CShs= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="rSn/HhKu"; spf=pass (imf17.hostedemail.com: domain of 3YOr8YwYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3YOr8YwYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677519457; a=rsa-sha256; cv=none; b=BI8fYJ4LdhcuyksgfSS2xahVLI6YxiiRPFEn3IQSE9kE/VXm11YH2a06OkU2MtfGXm5RWS 6T3Jo89qPsrrdmf7rlTgPmoDE+Bbmposk9ogl3tkZBvvub8p8cxU3ygxIMoWFCoIoDJvmR uPvljIovuwSMS1Lgzdtpzd7n084WDkA= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-536bbaeceeaso152745687b3.11 for <linux-mm@kvack.org>; Mon, 27 Feb 2023 09:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=7ZDLcNGctmKqQEDQSm/x/HJRE1p1urqN7vMq9ze3IhQ=; b=rSn/HhKulcAt/dXRGMHQok87P5M5E270I0oCS3gZJEWkLWidOpnej1dxaWrgMzWbdZ hRegAssYtkAXj68NCwN4NlvBTUXN9bj0pr+BM9FESPqsUtzNJdLfxpMOuaf3C4zcz8AG QQ9sSRnDU7Hb4QEga3Ttu8/AwCSxDxNjWb2i9IxegWBslOk4oTQU94dc0rtucLzduQ3Q 4ozKaX/E5D/Dfa902LgPaXoXtxfZ+pNftUMyHyvMV2xCazmDlSOzCrSiriiDBvuGe/Gm 12h/Fv6wWsZva2wBOKCzc+/nhceTE6OG2eBLFHaxFB9ziU5glhrshChbsmrwR3lUlmIy 6zUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7ZDLcNGctmKqQEDQSm/x/HJRE1p1urqN7vMq9ze3IhQ=; b=uJ6wDPep06ur/DCWcNxSchlM7gamLqEI31RkCrmDuWlMKYCXimijLyc+vAZ3/hggfa Xz+6DXSr6Iqx8o4j/z9JJwzbfUq8mxsgk0hmWWw1yG1t+itmeUd2tQoMdp8m8zDVx5dk Wk3p9eB75CzaJzPPkr0ABjJQ3FzbY6IFdIQia5EpozUczArhxhZzauTPyiW0PxjV+JJ+ P6/FJMDDjjX3Nm40BuZyMv+VATKDRyd8izAIXkACAmJ9USh3rRqZqcp5IXR9xRf5zbtS rDXBeHUl3yNfDFBGRE/dWmkvz1QuUD6vi+HzUwRmQvFQa1uRn68LmsayHIaDYm6wQQEj x2EQ== X-Gm-Message-State: AO0yUKUUQIYjfzHXlbQbOPMamYOiu8QCitAa/bOO9hAAwD2cB96glCQd 4OIk81thh630VVeT2xSJNa3lhObm2aE= X-Google-Smtp-Source: AK7set8grN4JIndM+ly9gt1j/cdj3SHv32UwM9Nv4EN/4JzKqYBKorAEBnSg1fP76/edXWaaLOwjV1mMS3c= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:e1f6:21d1:eead:3897]) (user=surenb job=sendgmr) by 2002:a5b:406:0:b0:904:2aa2:c26c with SMTP id m6-20020a5b0406000000b009042aa2c26cmr9545732ybp.5.1677519456128; Mon, 27 Feb 2023 09:37:36 -0800 (PST) Date: Mon, 27 Feb 2023 09:36:24 -0800 In-Reply-To: <20230227173632.3292573-1-surenb@google.com> Mime-Version: 1.0 References: <20230227173632.3292573-1-surenb@google.com> X-Mailer: git-send-email 2.39.2.722.g9855ee24e9-goog Message-ID: <20230227173632.3292573-26-surenb@google.com> Subject: [PATCH v4 25/33] mm: add FAULT_FLAG_VMA_LOCK flag From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, paulmck@kernel.org, mingo@redhat.com, will@kernel.org, luto@kernel.org, songliubraving@fb.com, peterx@redhat.com, david@redhat.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, chriscli@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, rppt@kernel.org, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, gurua@google.com, arjunroy@google.com, soheil@google.com, leewalsh@google.com, posk@google.com, michalechner92@googlemail.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Suren Baghdasaryan <surenb@google.com>, Laurent Dufour <laurent.dufour@fr.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: b4f5s3y4jm3axs5nyezn1gxwe9de3iih X-Rspamd-Queue-Id: 065804001D X-HE-Tag: 1677519456-633202 X-HE-Meta: U2FsdGVkX18shNmkzc4v2MY+rN2RT4FoiXzldcJSVt7+Q0lm7vjTQk1S1kQlypfvqYmGRPLXDeAHHwVReMLgKbGfhjmVANd8AMSW8V/CacVi3uOqpsUGKPuxQYRy5FBo+eORVAIjIVD/A9ChlngJLoMGuHLXGBPYtUlwxHN6RhW16ZH22FkAm5UyLkJznNpUgQIlUUUsGlke3z2p+1ucRxYHilEmDD3SpfyrbMc7LP06XJDLpVijGV2WwY7TfhaN6noPx3t6IALTyFsmJnSynCM9vgwCVlSu/kQB+BQUsgqVw4YKyGRoo37zi/U0IHUi16P5aMjJP4vys4cKVVLLfbEBG9DSsCCdkLybmgDCBc+p/tGJQhFuXWHqfnMtDyjHGkrCgQqtOOYQl9SZuTaNTJv1hQhBamsogmXS9irHBBLtVeeI51SZhgXTneCWLGpdiCTYacKRs4QSZBPG0f7uH++NjATIYEdY2SOthLkW62QlCXOXb8jRrB338YpbhvSWuJiB/hazIw1nUpjcol79g4pcsbfpmPFOnA1pLw/j1qXUdrGcz2WIMBadbfTCr4bozAxe0Y5t7dhZdEn/jogl/8SRsp3uGC6e32b5ze/0CS0U4yT3enp4/JWK01WJMSRejWbON1qAG23Quy3e/BTARgrjICsV5XTxtVOa6EVSuEZ5HaE0YfAI6wPnMRZ8OBRf86exOdPqOw9D/6LUe0CXDrTWzYyo+vGBzSHNC8WelLIvgC9MV6vXqo55CTFEzijjowb8vqhqjlyzCGvIPRoOafcfPkoGebgZ0O5DS8RA+/RaOebhMeYi7115nFg65MWE8X0Xe5BnlHux9j0I0ro00r+6nLf3JmgOZuRBefJHvha63N6CFMR3CCcepHEOzxESO6atzUR9wjP9f9GuyrGPSVfeRvX0+5TZc7y6IwTSCUQ2YsJiNnpblFLRIp1bfE3nxHZmBlGVzcgSDu24vk4 6zvqXP+/ 9JjBiRHLJd49L2ZodrSV/bC2i/SlCkgLqyGI4uNYuXsDRP+hnMAJpFzpZKPMXtDzt2T+EaAGGhT0sX5I9OXdiRK6IkyRZ475i0xwYan4euP/TA5jYWbdnFjFsWWTcRwFATtGov+0O2YlInSKrWFb5H10H+aOVxWB5RRwO+e7j8S1LcgFPBCtto5bn2TN1W86QjB5vSzl5TZ24XLzgmnK5buWeYh2vhHTR73OPxDaoXH2MeT4eoGRMCo982fAnTaK4pPuKyWTO8Jqo08ROIuSszMW+WgcnFD0Qmg2vF7ShwGSrUZ/qtLkhEn8XWeAVZ1CFUGPrESrWsTtZ+BehDNCTbIGoaQMxCUoHTHsqveyUBEZgYDM6R3YEcHUqUhMymMbI5PeXiIGHvyA0yRYlyyCCxeLjQCFG6aX2NQMUhnAx0olKtYfqPYfBXcNWT6+6mnOqGYOdn754mRhzrQ1YiSoK3meWH99m9PgYHKaq0S7PpPcMFKvJR3AC5kyE9S1G7zAl0rGHJyP+/v03HqsxBRDF74J3/A5JYSUAIWnG4KvlO1mSnwUCpPaht+o4wLxvXgQskPpwBzwKWvw7c2dbykQVIGZyAfacm6ovpeLqUCP2rGkrTfNH4BlcQ7QqubWg1sHIqjsQh7nu6s4MBN98BUhJMzs5CX6Z4CJXc3FIDu/xnHEoZXm3+Xfo71o6D8OkXtTLxZVl X-Bogosity: Ham, tests=bogofilter, spamicity=0.000011, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Per-VMA locks
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index 46d2db743b1a..d07ac923333f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -478,7 +478,8 @@ static inline bool fault_flag_allow_retry_first(enum fault_flag flags) { FAULT_FLAG_USER, "USER" }, \ { FAULT_FLAG_REMOTE, "REMOTE" }, \ { FAULT_FLAG_INSTRUCTION, "INSTRUCTION" }, \ - { FAULT_FLAG_INTERRUPTIBLE, "INTERRUPTIBLE" } + { FAULT_FLAG_INTERRUPTIBLE, "INTERRUPTIBLE" }, \ + { FAULT_FLAG_VMA_LOCK, "VMA_LOCK" } /* * vm_fault is filled by the pagefault handler and passed to the vma's diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 45a219d33c6b..6768533a6b7c 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1097,6 +1097,7 @@ enum fault_flag { FAULT_FLAG_INTERRUPTIBLE = 1 << 9, FAULT_FLAG_UNSHARE = 1 << 10, FAULT_FLAG_ORIG_PTE_VALID = 1 << 11, + FAULT_FLAG_VMA_LOCK = 1 << 12, }; typedef unsigned int __bitwise zap_flags_t;