From patchwork Thu Jan 19 10:02:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13107653 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 635A1C004D4 for ; Thu, 19 Jan 2023 10:06:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E01856B0081; Thu, 19 Jan 2023 05:06:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DB0626B0082; Thu, 19 Jan 2023 05:06:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C788D6B0083; Thu, 19 Jan 2023 05:06:27 -0500 (EST) 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 B6D706B0081 for ; Thu, 19 Jan 2023 05:06:27 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9A2E9C0CFE for ; Thu, 19 Jan 2023 10:06:27 +0000 (UTC) X-FDA: 80371118814.23.1B9D4DF Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf24.hostedemail.com (Postfix) with ESMTP id 166E5180010 for ; Thu, 19 Jan 2023 10:06:25 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=rEgNupxq; spf=none (imf24.hostedemail.com: domain of BATV+d6c99cb0ec1a2cfa7d20+7088+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+d6c99cb0ec1a2cfa7d20+7088+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674122786; a=rsa-sha256; cv=none; b=CiCLnpRgHLwYv4Vv5NT+GtckAFTlwlIvGz7be8JxmxTYvOkZ7SS5X5AaZYPQ3yYB1Pa4aL XZl5wZJJxQnw2ezhfnzGgJhktpjV1sxO8VMmJK6HRNWCUiWNRNPbdb8I6/TFqFmnruXrKJ rN0BlpJ/iLwTIPQZOVOBR8Jgrw65Bk8= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=rEgNupxq; spf=none (imf24.hostedemail.com: domain of BATV+d6c99cb0ec1a2cfa7d20+7088+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+d6c99cb0ec1a2cfa7d20+7088+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674122786; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4RmV19EAM+B2CDmR2ihG/lcFPqU+d4bBFKrZ9jZTpyo=; b=vruvhTVJzljOSzrqOaDLJFNmADxThIQdToII5XPl4UEmzWWRNx3JSmCIYVC53MyRKVhn9M qkxwe2xSR5/swHLsdaPXKezVW+OichJfsTMXNMosZlnomLi/IciPfC7Gp/szWQzBIXL0dQ w5XtXXqDXqzVdBCeRDcfLRdwJ0RIMu4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=4RmV19EAM+B2CDmR2ihG/lcFPqU+d4bBFKrZ9jZTpyo=; b=rEgNupxqCYWtsaiPmzcb93PGgc UVBG7t5c6mOcpdxHMVJB30NDMCarj6Frwf2vCCex2m0H/z6EU2SiyL4dI3EvnXsLQapNPYKVND5UI DS6rHirbyD5irWqapPkFUN90mq/wbAl1B7ZxLZb01XsyAL5t9l575G5J3wzrQ/53fUDvCD5Fho1cp NLvKcnegXZOmybSwa2c3FSdzyytKFfcGF9fcXCwCSXKVKPFP85CPF/FuhIM2E00erhg90KEX3fMFs dKllPZM4OgMxZPqRYcNrT53JSib/qAi/rLvLY2uS0xd8A0/a2rTZ5+U4NaGm1YS+Du6cHrd9WWZUs zhQN0YAQ==; Received: from 089144197172.atnat0006.highway.a1.net ([89.144.197.172] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIRoN-004Lco-Hl; Thu, 19 Jan 2023 10:06:24 +0000 From: Christoph Hellwig To: Andrew Morton , Uladzislau Rezki Cc: linux-mm@kvack.org Subject: [PATCH 05/10] mm: call vfree instead of __vunmap from delayed_vfree_work Date: Thu, 19 Jan 2023 11:02:21 +0100 Message-Id: <20230119100226.789506-6-hch@lst.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119100226.789506-1-hch@lst.de> References: <20230119100226.789506-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspam-User: X-Rspamd-Queue-Id: 166E5180010 X-Rspamd-Server: rspam01 X-Stat-Signature: m6c8ycsep1iy3fyd5q8kni6jtzp1867y X-HE-Tag: 1674122785-348144 X-HE-Meta: U2FsdGVkX1+Q05Fch4U2ktSvJa/nbcMvf2KsvAIDcmZJWHtqxPoRt957OMSfU6PD6Y92yMAZSnJAoqmjVguE1jKbawII/PHPPiWOLGe/qKOSwuglmO6NswCe1CoYVYPxorPZ4zoKkK1+WVYgmXOHWuVpU0hamuj7SVX3R8VvvE9H0W1PesFZgFnnj2K8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Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This adds an extra, never taken, in_interrupt() branch, but will allow to cut down the maze of vfree helpers. Reviewed-by: Christoph Hellwig Reviewed-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index daeb28b54663d5..3c07520b8b821b 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2722,7 +2722,7 @@ static void delayed_vfree_work(struct work_struct *w) struct llist_node *t, *llnode; llist_for_each_safe(llnode, t, llist_del_all(&p->list)) - __vunmap((void *)llnode, 1); + vfree(llnode); } /**