Message ID | 20220829212531.3184856-19-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 F1A46ECAAD2 for <linux-mm@archiver.kernel.org>; Mon, 29 Aug 2022 21:26:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F4062940016; Mon, 29 Aug 2022 17:26:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EA1C8940008; Mon, 29 Aug 2022 17:26:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6DDB940016; Mon, 29 Aug 2022 17:26:09 -0400 (EDT) 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 92431940008 for <linux-mm@kvack.org>; Mon, 29 Aug 2022 17:26:09 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6B439402B7 for <linux-mm@kvack.org>; Mon, 29 Aug 2022 21:26:09 +0000 (UTC) X-FDA: 79853913258.13.F662E4B Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) by imf28.hostedemail.com (Postfix) with ESMTP id 1DCF4C005C for <linux-mm@kvack.org>; Mon, 29 Aug 2022 21:26:08 +0000 (UTC) Received: by mail-pg1-f201.google.com with SMTP id i25-20020a635859000000b0042bbb74be8bso2624682pgm.5 for <linux-mm@kvack.org>; Mon, 29 Aug 2022 14:26:08 -0700 (PDT) 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; bh=MrRcKlTR7zCSrJMQg2Z93mfggQWMfDwWeAi691n34gQ=; b=cVg/tOxX8sxsAXVi/E7ByEF0x14KVPhZxGLvuX25A7I6HfsUpP9Yw5fhBx8ozeM60j nuDrEi09QA9+LTKC8GajK7CQiyi7gN9srLPx+SGJoGK9+OesuSLiR+9oEBujQJz23p/X P3t9ZdRyZDRuaF1wtpM+xaufjpbccFTUx81s4naxMNNB/ygFAADiWbtKwBK4coZj6Khw l+lkYHWl+iss5qkPjBxcVIZuDHxj8lggM4wnCJgOdoiaVpSSSGOBOp9823YRpnW7UBz5 1Wlgpr7ZzU0IbMK3CpPADXeW2X4v/4Fep7gHMya9NlwRNw5kCRaApBpvKmaw4X2L8jbG 4C6A== 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; bh=MrRcKlTR7zCSrJMQg2Z93mfggQWMfDwWeAi691n34gQ=; b=MxA8HV4lZzhCuAyDoZZPrBHyEPoZ9hM4UIC3WD7mBf2qQUu0miCeVISfXsd6XvntVO fPf7vpnQCzuGX8QSG/VRKP9wazW+k5CMZ3wR4mljK/qWPHCUWMgH8i/IiSbLNzWI1wFy qWc6EPJr9072tqo4BZifc7EpI8BuUWNRK14+gAvyqPtrBME9xMzds5vLlYQO7DoCuo3E PcfobCZWMTA2qhNyZtX0uMmeKmMYiPWyGIkLI0+KJvaSPQ82t7L6YEG9Ox74udF8JsPc NAMDuB5FVFQ05klrPVyckGz4Gs0wq3JOSqNl0MJo4dRaQ3DwwJtfu/m8fxdyP5E0oto0 VFLQ== X-Gm-Message-State: ACgBeo3AYCEgdVIbhamBKR1MEJujnk1v78CyGR1qLREgAMkQzmuK3LRB 4VGuGpROKrqcb5Chxb2O39ofGQD9ZDQ= X-Google-Smtp-Source: AA6agR6U/5CcVqFo3qhw78HCsOiNZ4QUVwqc0LtUdoOd4ifUOM6ozQmoAsAgpNZOBFg7UV9Y6fDIpWBGaXE= X-Received: from surenb-spec.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e30]) (user=surenb job=sendgmr) by 2002:aa7:8742:0:b0:537:ee75:601a with SMTP id g2-20020aa78742000000b00537ee75601amr12578569pfo.37.1661808368234; Mon, 29 Aug 2022 14:26:08 -0700 (PDT) Date: Mon, 29 Aug 2022 21:25:21 +0000 In-Reply-To: <20220829212531.3184856-1-surenb@google.com> Mime-Version: 1.0 References: <20220829212531.3184856-1-surenb@google.com> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220829212531.3184856-19-surenb@google.com> Subject: [RFC PATCH 18/28] 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, laurent.dufour@fr.ibm.com, paulmck@kernel.org, riel@surriel.com, 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, rientjes@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, surenb@google.com, kernel-team@android.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661808369; a=rsa-sha256; cv=none; b=zciObebkD/qRrxrvhERF93y4wC8Os0ugAl5DNIc81Rt+TAEYZRcWt9k6PzidBhDO8rTofU txltpmXPHJt2rDRriKplAfPpSgWSkUeEMdjMCCN/fDTsvhCOeyIyn7oj+OANzg37yESsBR p7u2hVSaNc2P+dwJDbEzJP/8E18qwUM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="cVg/tOxX"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 38C4NYwYKCKETVSFOCHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--surenb.bounces.google.com designates 209.85.215.201 as permitted sender) smtp.mailfrom=38C4NYwYKCKETVSFOCHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661808369; 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=MrRcKlTR7zCSrJMQg2Z93mfggQWMfDwWeAi691n34gQ=; b=OReoAfJ3oKBse1o7wIUKlhs+mulc8yMMeQ7MSj1/EZhbIZ8N+wwzxGJZCz76rD8mrRnTlb +ssUaAalVS1lrcuJlbAqZvT8fn/ioO95zN5wRD4DvZEcj+B7+eGLZxGQyouJXSA/25zRNA /Ttp5/cq8B7XKuTl+vvc9MtOH42GwOo= X-Rspam-User: X-Rspamd-Queue-Id: 1DCF4C005C X-Rspamd-Server: rspam12 X-Stat-Signature: urwb19qgjxt3ytg83eq1jty736hqa75e Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="cVg/tOxX"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 38C4NYwYKCKETVSFOCHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--surenb.bounces.google.com designates 209.85.215.201 as permitted sender) smtp.mailfrom=38C4NYwYKCKETVSFOCHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--surenb.bounces.google.com X-HE-Tag: 1661808368-465647 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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 proposal
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index 0d9c1563c354..7c3190eaabd7 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -466,7 +466,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 6a03f59c1e78..36562e702baf 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -886,6 +886,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;
Add a new flag to distinguish page faults handled under protection of per-vma lock. Signed-off-by: Suren Baghdasaryan <surenb@google.com> --- include/linux/mm.h | 3 ++- include/linux/mm_types.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)