Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp437535pxf; Wed, 24 Mar 2021 08:09:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+B+AuOU2RT63NiOtAgeGKzHxEKUUDNBETlXPy50lwdTNwdNqphvmQubmTeEtUFB65aEqc X-Received: by 2002:a05:600c:378c:: with SMTP id o12mr3411051wmr.69.1616598550333; Wed, 24 Mar 2021 08:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616598550; cv=none; d=google.com; s=arc-20160816; b=x4ufHOtbTSFVLzt5FzSLrG8dCpLTKRcQWeR8aaQr4QgmBT4jt7nfm22/W6ReJzZkVO Ch5KjqL4bTFPDUYqffgUfB4eLbCYHDoX/Vm5cPW7BQAnzeDU5r79nu2tKu52d5LjbGdA qBs963ThYcZO9eP4gWHHz2bYFMH/1qYtP4WkqgwXIxxz2I7thgxLl7Hi9jvQzB53yCJ7 8wEYdyZSgD3n8kkuVwL/6w5tmfZ8GB+TthRphnEl8u1s+IgN1wgtPECPWInBBDCVtVuN j3F9MukQxd+bGYWgTt/XVTmddtL4ydYTmN2wbLljnuev3wlGgiVJMRgGlXKSlEjzyTm2 9kFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hVxZXX/ZU/3XdwG31rSSlYrNlBfhoK+5PYvevGCxNoM=; b=uSIH0wtbexJWZOeRSW3o9+Rl1nbOZCA2fqjQ81ROX8tid+GPF+eoQtbutVbqRoW4lH jGfHRgeYbfApYkyWURrmy0O7d11pAXZIFqxrXwV+tmkXVqgi+3La1dWi0HaLNvu5SSBP Jgk2FpWUGRWacIs9o7qNtEkNiko6teNIfQOZMEP6aTNesnp6CaGJxbahtMTeBcNN4EiS yhh3taicE+Q1q6EtIDcfGSNA6v/11gPgW8cQ9VjC6pVHtSvLNWmVEK+b360OqEV4tu23 HgtvxMCe+uLGAvWhLr2MS/Zspl8uGoA4fdBb1j1WwdZr7AyzD183nwl2z/2v5yaPJa8b 5XSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YkXU1cN7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si1924970edr.388.2021.03.24.08.08.46; Wed, 24 Mar 2021 08:09:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YkXU1cN7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236468AbhCXPHS (ORCPT + 99 others); Wed, 24 Mar 2021 11:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236365AbhCXPGv (ORCPT ); Wed, 24 Mar 2021 11:06:51 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD64C061763 for ; Wed, 24 Mar 2021 08:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=hVxZXX/ZU/3XdwG31rSSlYrNlBfhoK+5PYvevGCxNoM=; b=YkXU1cN7hCBsBij95SU20l3a5c mKZGgceOPFOc4TikwTUErQVfXX90kOGHTrO2lrEjsoy0DPidFCk78dO+3T34Yx0j+BCWBr6n/nfMn 5mdDmm1eeHgxH4dQgfIlNdM2LYSZ4ObkdPrpg51c5YiEW864AXC0Dn+4FYzva72Zybn1mJUFywB9L cBQYMM9968oAqMF5P7nas9hmdcMPuMNv/YyPk9uW7OIE3PF+X1GSnvBu2/pKUwMr0numszjLrfhLB YvowrlrzWxvt5gAzVP36Yjn0DtsCZpBWkrqiLorRIoBUtTxLBd0ysFblcnK0GFGxfJceSJfvv4U8T GBzzwe9g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lP54R-00BTOu-Vw; Wed, 24 Mar 2021 15:05:41 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , Uladzislau Rezki , Nicholas Piggin Subject: [PATCH v2 0/4] vmalloc: Improve vmalloc(4MB) performance Date: Wed, 24 Mar 2021 15:05:14 +0000 Message-Id: <20210324150518.2734402-1-willy@infradead.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I may have gone a little too far with the first patch. It turns out we have a lot of code using the vmalloc caller functionality, and I decided to convert it all to unsigned long instead of leaving some paths as void * and casting later. I can redo that if necessary. I've tested arm32, sh4 and powerpc32 builds as well as x86, but I wouldn't be surprised if the buildbots tell me I missed something. Matthew Wilcox (Oracle) (4): mm/vmalloc: Change the 'caller' type to unsigned long mm/util: Add kvmalloc_node_caller mm/vmalloc: Use kvmalloc to allocate the table of pages MAINTAINERS: Add Vlad Rezki as vmalloc maintainer MAINTAINERS | 7 +++ arch/arm/include/asm/io.h | 6 +-- arch/arm/include/asm/mach/map.h | 3 -- arch/arm/kernel/module.c | 4 +- arch/arm/mach-imx/mm-imx3.c | 2 +- arch/arm/mach-ixp4xx/common.c | 2 +- arch/arm/mach-mvebu/coherency.c | 2 +- arch/arm/mm/ioremap.c | 27 +++++------ arch/arm/mm/mmu.c | 10 ++-- arch/arm/mm/nommu.c | 16 +++--- arch/arm64/include/asm/vmap_stack.h | 2 +- arch/arm64/kernel/module.c | 5 +- arch/arm64/kernel/probes/kprobes.c | 2 +- arch/arm64/mm/ioremap.c | 7 ++- arch/arm64/mm/mmu.c | 2 +- arch/arm64/net/bpf_jit_comp.c | 3 +- arch/mips/kernel/module.c | 2 +- arch/nds32/kernel/module.c | 2 +- arch/parisc/kernel/module.c | 5 +- arch/powerpc/include/asm/io-workarounds.h | 2 +- arch/powerpc/include/asm/io.h | 6 +-- arch/powerpc/kernel/io-workarounds.c | 2 +- arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/module.c | 3 +- arch/powerpc/kernel/pci_64.c | 3 +- arch/powerpc/mm/ioremap.c | 10 ++-- arch/powerpc/mm/ioremap_32.c | 8 +-- arch/powerpc/mm/ioremap_64.c | 4 +- arch/riscv/kernel/module.c | 2 +- arch/riscv/net/bpf_jit_comp64.c | 2 +- arch/s390/kernel/module.c | 2 +- arch/s390/kernel/setup.c | 3 +- arch/sh/include/asm/io.h | 11 ++--- arch/sh/kernel/cpu/sh4/sq.c | 2 +- arch/sh/mm/ioremap.c | 2 +- arch/sh/mm/pmb.c | 2 +- arch/sparc/kernel/module.c | 2 +- arch/x86/hyperv/hv_init.c | 3 +- arch/x86/kernel/module.c | 3 +- arch/x86/mm/ioremap.c | 20 ++++---- include/linux/mm.h | 4 +- include/linux/slab.h | 2 + include/linux/vmalloc.h | 22 ++++----- kernel/bpf/syscall.c | 2 +- kernel/fork.c | 2 +- kernel/module.c | 2 +- kernel/scs.c | 3 +- lib/test_vmalloc.c | 7 ++- mm/ioremap.c | 3 +- mm/kasan/shadow.c | 5 +- mm/nommu.c | 4 +- mm/util.c | 52 +++++++++++--------- mm/vmalloc.c | 59 +++++++++-------------- 53 files changed, 172 insertions(+), 198 deletions(-) -- 2.30.2