Message ID | 20230127194110.533103-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 243CBC38142 for <linux-mm@archiver.kernel.org>; Fri, 27 Jan 2023 19:42:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B644C6B009F; Fri, 27 Jan 2023 14:42:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B14806B00A0; Fri, 27 Jan 2023 14:42:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9DC806B00A1; Fri, 27 Jan 2023 14:42:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 8E39A6B009F for <linux-mm@kvack.org>; Fri, 27 Jan 2023 14:42:21 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 6DE99A0570 for <linux-mm@kvack.org>; Fri, 27 Jan 2023 19:42:21 +0000 (UTC) X-FDA: 80401600482.18.46A5B65 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf22.hostedemail.com (Postfix) with ESMTP id AFC01C0007 for <linux-mm@kvack.org>; Fri, 27 Jan 2023 19:42:14 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=mLwUPJ0n; spf=pass (imf22.hostedemail.com: domain of 3FinUYwYKCN0RTQDMAFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3FinUYwYKCN0RTQDMAFNNFKD.BNLKHMTW-LLJU9BJ.NQF@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=1674848534; 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=2v/Evza9dkU4Ne98Lm6HAWxL8/YazIwD41pmx7joRkE=; b=wXDXLMkrbvBwaXAThFYDmc6E/UPY4DXcJYCQTdIKBSyRt55Znvukcz/sb3hksL0Ah1Y4ph h18hVFpmhmcvj8x5fU4OxyixrQtuGIBiU02RA3YdUc0mxmMlwCciaIy6vCrRX1CliSQQkF DuLcmJEmN2lGEsV7kGD7WZCsaVyJIGA= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=mLwUPJ0n; spf=pass (imf22.hostedemail.com: domain of 3FinUYwYKCN0RTQDMAFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3FinUYwYKCN0RTQDMAFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674848534; a=rsa-sha256; cv=none; b=LiwmYv7X8F9k+TXzVqfF1H9l1MunZe1XuqBoR6ZIl7rbIUY/vKinMt5DsfU/OfLLTkkHoR f1jlgqaVOHisFK6OEcPgs0+k9d9yjKhZSz2jTy525QT8VoY6ArYvJkMJVdvBouG2a+ImNY cLGKRlprwLF8hfV+6ESLSp+9dHzUjiY= Received: by mail-yb1-f201.google.com with SMTP id d21-20020a25add5000000b007ff8112e8b8so6430317ybe.17 for <linux-mm@kvack.org>; Fri, 27 Jan 2023 11:42:14 -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=2v/Evza9dkU4Ne98Lm6HAWxL8/YazIwD41pmx7joRkE=; b=mLwUPJ0nc0ulmmwFoyR9amwtEYn4GV75pogWN7ijAK31MqrZCBgfhijsONjhepzopP 2wYY2SkQatHOd+vKpDSxYxHFT1IvhzZTwDWuTcrFWygojUbcZe7xPlEiO9BQnq0w9fKe z4cHjJJqSwoele+PetnaYF8lewRv+be+h1Bgt+SNNsmNqcyEHhiyYbNRieovHRIQnY7Q KgzOHSrbk4QlZX3GRmHUucd8wrsetfG2ey7u2AbUsjqg+O7jZuWXERmenSwIYYomTRZT 0AcxNZ8Sif0L8fvqzJHXb63zST/Gg9+vMF9oOa1KQZBohhw7ZSFfQ9eLw7FWbw/nE4Qf wodg== 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=2v/Evza9dkU4Ne98Lm6HAWxL8/YazIwD41pmx7joRkE=; b=gZyeB09WEjsGN5CKnG0/uy1qMAEiyzoQAnOvtD6XjVHgfbMQjFXJADh7nVqpCqyhTb Q/gcJOCcBiaGUCJoyUCrgIf7ZUy/Y0VAGikjh8hS90hhvBlnqa31gCtHHse8HgPjazNm euo4UOOp2dUZi1k7+lkxJYK2/t2Gk0rIKPPDV6fKJZqk1EvaULpwua+R/Qd6wBZPldTl hlQqOcgIoIRJm+lpnHedNhOPQ4khyejTa7eyDK4gUE6XdPGXFaOUSEXWOqjb8PM8bmqb Nx/nFOQBwspSHPl2vzRUnCvivTLnPud3EEIJxIM3C/SxCbwHFT8UY0r6757Xg5s3PXfP pfZw== X-Gm-Message-State: AO0yUKW1EmyglXTaqWR2zYsp34lWyx8/N+HuMY37CuuvPWqPhnTvVre3 LwA2yh7hHOzobojTHMfEYs/NdsYQLcM= X-Google-Smtp-Source: AK7set9kKqDiJe5U7EOGuYIrwgRntRqTHzt+zr2t5qOdc5+YeQS/lL3tZ/xnNoww1dZdAcqE9B1Pln9KCVk= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:4e19:be9:c5d0:8483]) (user=surenb job=sendgmr) by 2002:a81:b2c6:0:b0:509:5b20:ff22 with SMTP id q189-20020a81b2c6000000b005095b20ff22mr917640ywh.328.1674848534136; Fri, 27 Jan 2023 11:42:14 -0800 (PST) Date: Fri, 27 Jan 2023 11:41:02 -0800 In-Reply-To: <20230127194110.533103-1-surenb@google.com> Mime-Version: 1.0 References: <20230127194110.533103-1-surenb@google.com> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog Message-ID: <20230127194110.533103-26-surenb@google.com> Subject: [PATCH v2 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, 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, 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, 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: p81p3stjadjgxtmtgsozrt57oirzwegz X-Rspamd-Queue-Id: AFC01C0007 X-HE-Tag: 1674848534-537163 X-HE-Meta: U2FsdGVkX1/AcyRy4ExcehmvQ2fgUHu25eCgsFCq6j8NqA6HTJnKqet6h3ZF3gcJSendxEtgxI6AiHbZTW3ewU8PGOLGfD2V83Cy0QWNk2rFVSisBKANmwNbtQWxCXFr/pEZOfC/nRqXKu583gKRa61J+9aub7xFJ+z5YSDBJr5yfr95At40fZrpimOgT0KhuHf97NKjzW/VEaCab9pWqMsNRZz/8SEdrcRkSNa/vCD0G4Ysi7ipILHZHV8LNRlEYbcvLopal1sitOZ0LP9XhukoIaj9RMD4j/CWK8DcICgU3XEGCjX9oIgDWPyKcT5hoFOBDfHfTyrfddEOZE1SaExA4zbSmjhzhW2qSVS6vRKyceOaBJkkSQ8URDRb5/ZU4WgnErzLXCwaPCIscRPn08tveRRwzFvLEsgi07lSj4upJMBCIhAT9gfdvmyHuxmb5gf/SFKCOqUNk0ava23CVIroFQFcclP4yFDTjXmIyfJ9LDy9Jykb0uMf0Qa2yhcn502rbju21FHD6lwEjMNbMb4xUCQQ1PmlLrD2VL9VQkOVbOCWEzvDFnwmkeavcpGMSWoQGgjFEjeg9Ne+a+dfsKYMjmJvR++mPgggg8Rwi7fXJ72EK870hiAauPhLgEc2BJ/WBXGHKs3F3LNQR8eQoUchnieHFYghNHzgWkbujSMBDc+0okTW1CHKFWpLFqkUGux2uV1qRfx1VzlWlDjP/lY0oeZtXWl4DFi1LMVx0GBoeYCXAPfK9f+1MobUJiGgOfoaoCnh5JPPtC5Lj0KUB1qFFwKoKSfnV1dg3dWNRqiEwjOb46t2GySOShPTK9s+F6koJ2XmjCCUk726N40AGEeiteD7Ylm7WoffH/83LJCR2PZvSliuNGwWa2bZ+96CD8eFy9BepaT487uheQ+qM1iOge2ZTkFaxQ4IsAnY1MdkWRBkuIwL0i73YD4hFh7DRC4v0Tgdr8KSz2DxyOG hUpzwBB+ m1gdHwFMByDxqht6bcdTSHGIHxFgHZx1Q6Ah3Zgcnn3hJgdI2rBD6A6Btp01ps2bnO4oLPX790mCKBOHaAij96YwOiFDz2AsgqJmROcs9QnoxKrnO9zk7xuisl1rj0ZXbyPhGhymiWXb4wAJD/lEWLCXp5boKNHi5LLDirOlVKfLrFKRgst6KJqB/s0OhxOOw2k9qEoRl+sUdZj4oFMAdvUKqciCXbtR3bb8pfOjqxYe5ao1zuBLFrJMNbylbUVrgPye2QX8Jr8b1YL+cXn83dZpuJCd/7D+7OtOosswV6Oujwb6BQglxwzowjW2VLZ5l9wTm+grYadVtaLFcx48rOz9gDsya82az+5dWbPmjzsBIrhLOSoh4Pf8a0RaZWuMztcXpQxyXT2M8ExHy229qFoZvTuyU+S4Ua1Uvus9rjDSpyAtxN45B+58NfNyT2sN4HlA3KNDQTw0yUDwM1AdJ00toLeUw42VeVexPn4Mq+jpzfjwGJ2TWhtTN7E9dZLa2ZuDe7z8OmQP/sWMEbh6TfXcI6yfedCK7uoLU7t+n+qUhDeIBai6guQFTk1Wuo9K3tR6e+tlssc6Q+NBgjoI4o3cuh7lVu8v8nYiMtAJhvp+o1ENV6rjtBwYRFsuEB16Aqvzdh8Vs0eRn9W0tA9kxG7tFCdRtbdcx+LU8kjuX94Dxn6X3Hn0i440RGFiSY01rVNszDfrO/mI4d4c= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000018, 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 fa2b9d6e665e..a6de58bb40c7 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -472,7 +472,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 88619c6a29a3..c4c43f10344a 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1053,6 +1053,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;