From patchwork Tue Jun 7 09:34:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 12871633 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 2B713C43334 for ; Tue, 7 Jun 2022 09:35:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 678BD8D0002; Tue, 7 Jun 2022 05:35:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 628DC8D0001; Tue, 7 Jun 2022 05:35:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F1478D0002; Tue, 7 Jun 2022 05:35:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3CAB98D0001 for ; Tue, 7 Jun 2022 05:35:02 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id F181320D3E for ; Tue, 7 Jun 2022 09:35:01 +0000 (UTC) X-FDA: 79550930802.07.84B532F Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by imf01.hostedemail.com (Postfix) with ESMTP id 4EB4940005 for ; Tue, 7 Jun 2022 09:34:51 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id j10so27355597lfe.12 for ; Tue, 07 Jun 2022 02:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+9f9l4kafijy5tF7KMskKmJ/qyS50hfAaTAXJIaHigk=; b=ey+7OYgV7aR8YmkHepSIEIvJD6ppZYccI9v3aTw4hBckRyBQaaRSg35vILfF+tJaT5 /ro7BEv3Bwyrw05UTpr1XJeS0spWfXfjSUQ/KXG+Cd+uTs6XXjBfIfLtDhLSYR2ruJjU bIkAQEI2fAZiy4V0/ZB3trU4JizsrP74/d5hDbwMq7OqfRejYA8u8JJzOewMEcq0s8h+ j3qo07tSzA9nBl21TqcNuK4+DcaV0xuJ3sj7WuPNFsrXymWZJGJGygjUdaDLs8mqt7lN WwYdAt71DyQPFJjTuRVC4tDx53FvSZMlhyoafCcUMbKDzwMBp8w8IWgJ5ppKQM8wH1Le K/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+9f9l4kafijy5tF7KMskKmJ/qyS50hfAaTAXJIaHigk=; b=OvQd5ybUPs+p7OYpeCspKNloocYebj3qmxsotckNNfZyGab7u0b4NI8lYNANsJ8je2 r7Sz3vpI3iIybKdE0wAfaUUmcai++7c34MHoxrGyC7kSYgSwEaSMVd//td5v1rqvb9aY 2fkgJleZ4Hcsmqe+DTccZBMa9uVILjqdAA4OmSKZdLDw7vK/cJ5Cm63d4cic/cuMarAR EyINkw20ikDNRWjEtQjpYkUeNmvlem8qN5BV0Fh8KjFt+hbo680t9Mk/TsAIsX+K9tvo A8VSB2RistKfiZEkXM5lXmA5dgaoOnix0B82z9oXsRY9IJGSpUrSFJOgrYlhEGUMRgEp tnyQ== X-Gm-Message-State: AOAM532nZZaY9CTsvxv0jZSFl63Z9brGb1P3Hfwj2PrGIBtg0I50l0sf kpCWfTxN2AIJ9F+hO3FI6tk= X-Google-Smtp-Source: ABdhPJwAahIn/7ZioTC+h2QdikezWSd6RqDgg9/Kn/YVckplbfBuxn7u4AcL72Pvhor6li8lMY4eSQ== X-Received: by 2002:a05:6512:2143:b0:479:9fd:14dc with SMTP id s3-20020a056512214300b0047909fd14dcmr17936064lfr.505.1654594499850; Tue, 07 Jun 2022 02:34:59 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id r27-20020a2e575b000000b002554a4ebf5fsm2748043ljd.74.2022.06.07.02.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 02:34:59 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: Andrew Morton Cc: linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH 0/5] Reduce a vmalloc internal lock contention preparation work Date: Tue, 7 Jun 2022 11:34:44 +0200 Message-Id: <20220607093449.3100-1-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 4EB4940005 Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ey+7OYgV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of urezki@gmail.com designates 209.85.167.52 as permitted sender) smtp.mailfrom=urezki@gmail.com X-Stat-Signature: p987xn3e47suu9ikbyj33hbs3cbb9y8d X-Rspam-User: X-HE-Tag: 1654594491-602999 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: Hi. This small serias is a preparation work to implement per-cpu vmalloc allocation in order to reduce a high internal lock contention. This series does not introduce any functional changes, it is only about preparation. Uladzislau Rezki (Sony) (5): mm/vmalloc: Make link_va()/unlink_va() common to different rb_root mm/vmalloc: Extend __alloc_vmap_area() with extra arguments mm/vmalloc: Initialize VA's list node after unlink mm/vmalloc: Extend __find_vmap_area() with one more argument lib/test_vmalloc: Switch to prandom_u32() lib/test_vmalloc.c | 15 +++---- mm/vmalloc.c | 98 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 76 insertions(+), 37 deletions(-)