From patchwork Thu Sep 1 17:35:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 12962989 Return-Path: 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 39B9EECAAD3 for ; Thu, 1 Sep 2022 17:36:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CB3FF8002D; Thu, 1 Sep 2022 13:36:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C14818000D; Thu, 1 Sep 2022 13:36:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8E088002D; Thu, 1 Sep 2022 13:36:22 -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 928F08000D for ; Thu, 1 Sep 2022 13:36:22 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 75B8CC1045 for ; Thu, 1 Sep 2022 17:36:22 +0000 (UTC) X-FDA: 79864220604.09.740B95E Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf28.hostedemail.com (Postfix) with ESMTP id 1C0ACC0072 for ; Thu, 1 Sep 2022 17:36:21 +0000 (UTC) Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-33dc390f26cso233052117b3.9 for ; Thu, 01 Sep 2022 10:36:21 -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:subject:date; bh=OXbMCMaGP4Ta1BmgGlOZJjCZdxKE/BRmpYL5lrPVZHE=; b=pWHztwJetxx0qowvevLvkxkCmwM1DSAQ7wjfJnXzpjijYQSBqPMfI0rG6nxi/Vrs1X CRVPAVdxEFSJIvF4wmbUwj7aCZVm5fVfcrhjUQbBf8n+p0SayMBlb1is6WVkqvLBgMjP AxVJ3sKIAz8Kn28I4Sanz2jyBLjhA5Sgmh51jOnVumpasjSH/FjDxpS14KsDzSHBeJ/z Yb37UvWIKHVN5xc1I6JjnIWO9Obyji3HzdX43E3p6Zl4/DUSGGEIR7W2aNpSc1VwX28m zHCfb00UkmpquMPwx5yKTUZ6c6Sedty+81FiCoVN909m08MOGYjyTskfX4dvSl+gNSYm xxfA== 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; bh=OXbMCMaGP4Ta1BmgGlOZJjCZdxKE/BRmpYL5lrPVZHE=; b=Uo/wh6iQQeqH4pljmI0TMaO2p73lyJ+fYj7uIuiqfEzsYrCnjbjirO7cLOMXWGoyvk b6+aJXrdhc/qkgD4Nnse9yFb7nVU6nJgXhXrDD1+0+/RuoGjachOX58KRUsjow434ZSI y7ENDLb7Vjfi6Wl81AVsx++Y5Of1FIYMY8TzXUqyHHpv6YNd5GXLfszBpSAKafJxiLoT +U/arqAwdC1fa3E0wYvrCZl9Zlm9EbtZ8VIpj+JXZCbfcdRc6iZIB1WeFIGZG8RD+Hf7 VmKxyyWrgcdEKeYKabZ4jF99wzhZTpsrwl6T3HhprXfmCpakEeK7JTRGHgi3IJo3R3TG W5fw== X-Gm-Message-State: ACgBeo0RnC9h7QHCVBKYG+Ao1j65mElk5vMTkbruUcIeqAWf7nh2Uji7 2QeUZGMnVz5eZ1f+OvX4X9lua+M1ieo= X-Google-Smtp-Source: AA6agR61BxBFn9qdHU9nkuJxxLaKayaG/YdyWtcsF9HYohujUkmqtvR1t3mL9v3jybeuPbaW7lxRg4vyZUk= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:1bfc:e7ee:6530:4449]) (user=surenb job=sendgmr) by 2002:a25:340d:0:b0:696:4dbf:614a with SMTP id b13-20020a25340d000000b006964dbf614amr21859755yba.470.1662053781470; Thu, 01 Sep 2022 10:36:21 -0700 (PDT) Date: Thu, 1 Sep 2022 10:35:11 -0700 In-Reply-To: <20220901173516.702122-1-surenb@google.com> Mime-Version: 1.0 References: <20220901173516.702122-1-surenb@google.com> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog Message-ID: <20220901173516.702122-24-surenb@google.com> Subject: [RFC PATCH RESEND 23/28] x86/mm: define ARCH_SUPPORTS_PER_VMA_LOCK From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@suse.de, 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, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662053782; 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=OXbMCMaGP4Ta1BmgGlOZJjCZdxKE/BRmpYL5lrPVZHE=; b=u03BRhvZe0WeYGIWtjub1ukr/Ob9XAhwGr5ZxqxcxudJ/dy0IShFyzZ1Ln7fiwvrcelFiY TcQ+4E+jLDUSBs8i3uUZgdL2lnUmW7+0LyY5DFBeFT77FBYkA57nVe05JsxJngMYvrjXJV jSdywW5gyFfoaf6zdaqeGm5q1AQ1GeE= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=pWHztwJe; spf=pass (imf28.hostedemail.com: domain of 3le0QYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3le0QYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662053782; a=rsa-sha256; cv=none; b=QSycFokzoP8Z1XNtNiuVLsO+G1G0J1CaxijVSrtRov8lz0LlXn9/YdW0Ybkmw5VQUTwaVZ gRl+psPWHhxjKoV4BxmjV5QbFYqHm5iBRYd6XdO9ltnf/HLWOVhiaIPo9szgjeKO8vdatR OrqjHTwoPsN0Bm4HTpIIqK9U8IE+kkI= Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=pWHztwJe; spf=pass (imf28.hostedemail.com: domain of 3le0QYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3le0QYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-Stat-Signature: hzm3eyx8nuo7ahpxc83sx88ef9xjor5k X-Rspamd-Queue-Id: 1C0ACC0072 X-Rspamd-Server: rspam05 X-HE-Tag: 1662053781-361352 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: Set ARCH_SUPPORTS_PER_VMA_LOCK so that the per-VMA lock support can be compiled on this architecture. Signed-off-by: Suren Baghdasaryan --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index f9920f1341c8..ee19de020b27 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -27,6 +27,7 @@ config X86_64 # Options that are inherently 64-bit kernel only: select ARCH_HAS_GIGANTIC_PAGE select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 + select ARCH_SUPPORTS_PER_VMA_LOCK select ARCH_USE_CMPXCHG_LOCKREF select HAVE_ARCH_SOFT_DIRTY select MODULES_USE_ELF_RELA