Message ID | 20230216051750.3125598-28-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 B0B65C6379F for <linux-mm@archiver.kernel.org>; Thu, 16 Feb 2023 05:19:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A1D16B00A6; Thu, 16 Feb 2023 00:19:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DC7E6B00A7; Thu, 16 Feb 2023 00:19:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 255D46B00A8; Thu, 16 Feb 2023 00:19:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id F3FB86B00A6 for <linux-mm@kvack.org>; Thu, 16 Feb 2023 00:19:01 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id CE1A8C0264 for <linux-mm@kvack.org>; Thu, 16 Feb 2023 05:19:01 +0000 (UTC) X-FDA: 80472000882.09.2EA05F5 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf08.hostedemail.com (Postfix) with ESMTP id 1D2E9160008 for <linux-mm@kvack.org>; Thu, 16 Feb 2023 05:18:59 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=GJ5BxW0Q; spf=pass (imf08.hostedemail.com: domain of 3w7ztYwYKCBoIKH4D16EE6B4.2ECB8DKN-CCAL02A.EH6@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3w7ztYwYKCBoIKH4D16EE6B4.2ECB8DKN-CCAL02A.EH6@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676524740; a=rsa-sha256; cv=none; b=o04/E4ZSsEBZTbudt1LkNTOpqKmKDO+jtMu1FB8Ita2fHBpsIEYRvmLLvFuoxt/pRdoCfL SnWhGMK3UYaYq0PQYm2Zfs3qU6lOIdnIGFlsZ63PzWLZKShtmPiQAF9W22GvyIU8KXrk4R tQt8AeLMpLLsoVdKIfElxb8HaBwdRRU= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=GJ5BxW0Q; spf=pass (imf08.hostedemail.com: domain of 3w7ztYwYKCBoIKH4D16EE6B4.2ECB8DKN-CCAL02A.EH6@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3w7ztYwYKCBoIKH4D16EE6B4.2ECB8DKN-CCAL02A.EH6@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=1676524740; 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=g+2R9wHJik/ujG7pbEIR7UB7BFuMmi7T4GQjwfs+Slo=; b=nTm878GgaK+fPWUpv8UzSrEgLuMGAlIUSpyAMghi1LNEn8OKi2tUIspec7pA+kUcNdNKVR 9bqwkCUYTbEb8b0dApMHQ1FoKctgYxsjZ7QRzjk+n5APu6y/AZdm9ewyhWDdmZO4u8x2SZ 7+RwFeNydWqn6iU5QMfyTa+NXmMUQWI= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-5337e2cbc58so8655187b3.10 for <linux-mm@kvack.org>; Wed, 15 Feb 2023 21:18:59 -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=g+2R9wHJik/ujG7pbEIR7UB7BFuMmi7T4GQjwfs+Slo=; b=GJ5BxW0Q1u88snEvipBftLmc3+Jf1QItAPirJyrJgB8Mp9ylRIIALZlXmJQ4wNiSwP o865zgbeTpwGE0/miDmLSBWepWhJN06egqwo+YGBO2p834t1tPcrBoNtCdfrXD1jQzaN e7lrVFe77phFTZAotKwLYsW/LOb59LyIPFjYvDx4mPrMSRvD2iWSSQr/TeKwF3SManJP 7zOmcrgCnGJ5t0wPXfGvFFU5Wepw7LHd2B3wtwv+KMRgdeCQNTeRgpwm3UNl2CvWi/nE 3FOidEUJKnpNbe60Or5Um47yum4t5Cm2ARYxCb7pet6vv6oqpLv+fwdHpYVdfug+gwv9 oixA== 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=g+2R9wHJik/ujG7pbEIR7UB7BFuMmi7T4GQjwfs+Slo=; b=ywAh28McrlWe50r3zgXEap+Z/GIMV6CeTWA29dhMdc4O08SinEEx/lku0j1h+HpvK2 3/kwiePWQE41CXkaamAfmBKmMb+s+pPu6y0Ypk9SSWGc31lRPrTJ2C+2rYtsF15F+mq4 fdJbHWJYgOC5/DQ4qlahaV0ZtyPk3Z7RnpUIP9O+BgxkgCFPCrHZ4tw9NZIfc8wSm9h1 bvgBo36jITG5z245QXMc2PJPq+wBZs55kgho0p7zmkNfA/ST0hWwa6RhViVfdjmlI2WV boi3RziNy9rQJsVJ1txw+rYTU9uQtEUruV7CNsHXn1oD6Ri/6iK8DFBcs15ySgXq2soC Etfw== X-Gm-Message-State: AO0yUKW6uGcSkgb+C4L5vagjIrv0ffvq4lxfI2/moHrBFq0UH3b287aV 094x+XEmTecXqnaBk1Ihqvtq1a+o5xk= X-Google-Smtp-Source: AK7set/8zrN2bEgVNx1m2BtSP2crHaoN6LxODGu2trr1UY0Ec3uUEJoRM+mde4AC+sE3ZWg+Wi9w81iJ8kk= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:f781:d5ed:1806:6ebb]) (user=surenb job=sendgmr) by 2002:a5b:144:0:b0:8ec:cc9b:7333 with SMTP id c4-20020a5b0144000000b008eccc9b7333mr463396ybp.205.1676524739514; Wed, 15 Feb 2023 21:18:59 -0800 (PST) Date: Wed, 15 Feb 2023 21:17:42 -0800 In-Reply-To: <20230216051750.3125598-1-surenb@google.com> Mime-Version: 1.0 References: <20230216051750.3125598-1-surenb@google.com> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog Message-ID: <20230216051750.3125598-28-surenb@google.com> Subject: [PATCH v3 27/35] 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-Queue-Id: 1D2E9160008 X-Rspamd-Server: rspam01 X-Stat-Signature: b3keky1omrf36ne913uz6iq7uuoqhxwm X-HE-Tag: 1676524739-520312 X-HE-Meta: U2FsdGVkX1+DIz8K9owbm0YWBSlo+1curq5IVE1R4aa1Rky0SRqEBx1Ex2G4yDPfFbplAR7i0l51J7kXYRCUcfA0tFQLG7ET4jjLBCanarZx44SeK6zKU62so9RZuEHYmUegbcO7/YOn2HbqKJLtDBf7VcmmjU0S0QQ3iRKPeJQz6xc9I/xlPs5L8GArEORGgNbL59bhfltvCEXP8Na11nR16dJtcbal2grzKDOWyRHVBMkuOlhEN88face0LQNTOT1KOe4aIRkpebr7OrhbCD2bI54iG+qTPY1Xwv5qGJez1oFgZaY7SDklvwitI8UaP+EsWkO7f3xVxpm/r9gd2KzztjGmq9Kdk14BEMKb+6g6UdFz4FErysThFH3lldZlgJfcU2KxDtiGcZbYR9oU2kiR5LF3TvSK0CViTNdKdNXaBS/PTP8Ic/DvAbhK1bZ5UALfnBFR+ayIWgxdOySpJEWz9/uhZyUWJQJVuKh1MRh2jRGqQJH/iUu4d6+EZhOdLbjfMboNzoCUONX5gbE0nnwit+E5aNwo234J9H0Y4Rmn8hhHHK7Z/cGKRkHAusblvQwQSc1kXB/mVQ81kMzU977B2xTDf6GMBiLDiczrRZmSR4DLrNN/cJbDKAQ3ShAtf71tg3Kwb65tCIBJ2lMvr7UpyioGGT0IKCBSt37ohEd6D6oZLCmYPLqNCz08VU9jr16xceCGH57TkjrvQZCv7LcEQlIXts5ovZ4QZwCi7WYgIwYi6z3ehFeIazrgBysfAQBbIZQ+M4XHj5v8srZ6v7bhpNc81S5al8ZX+NOB5yQOMUfoGCA/VMsKkMoivsYxzI43fm4COoKLh2i2B8iwcxzGUU9Sj+NEqNpTje8BjSBzfUyOqHs8NIZjshKVnZON8I1p1Bk1UNaEfBjtADO1Vi2M5TyzDeIWZ+jjz1xJ+leEqrmIELThzaTqBWtELXUjXgqsL1GOLKJR9EgXeBZ SV2Mu2Xm ivgVdQMXkpSddJVhPA8MndvrTS1sCwIIQAS4WTwyEfLXTllBhOMJuWadGwVzLdcm934XM9s9dTr5hS+ksOrBAiFD6EpFYpTIDyHLzezYXsGQZau5klFGKzJCh2qdZIkVHVaDgJEf9eIIDArHjSqzY2YX4MdmZcnfdFpxq30nMOrCI6OfcItjOtMS352eSvpZdQT7ndKD9xnuO1GeXY/73QtcbiPHLmqQ+8NxbeiUnWAtAk+vAUhFbgEu0nEJn7PaXUw+gC+YchvKarOOoMze/qcXu9eCNaluqrxHY3IpP3ZFDLEZFB3/iQIQkVN6i+UcfefFL2qcgcQis8Nae2WvKtAMJeNZnPYwYEgN8rCvKSLF++Iej8cVMbmHniTJtyCT4iyx+U9jE7BJ3MM1IAD5QXfZlGBOePWvqf3qxmeu3KtHAyxEHPS0JMORztn/ZEC25tfynXXnhda8yYV0slwo5qf78MIihsof4E6E7z5CYh+9GT1W5LtKqUM1BZk1LYA8ipYeiYovUcn5f1IEY1u0PAvzGsiZ5wtTYaT4tdtXWp3249xYM1S5n8h+/gr45gyxwnsQRNOMXB0M3wPDSDgZ9hI9IJUU9aUmtgChkOdA3QML45yVY9kiYzQ6xlgoetutHiYUwqzB/JKCdfHekkLpHfQP6MlwEyM4qtxtHdqLtj9ounI97gUwJdMjnQrodWZrOJLpR 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 36172bb38e6b..3c9167529417 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 939f4f5a1115..212e7f923a69 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1056,6 +1056,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;