Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1402907lqp; Fri, 22 Mar 2024 13:53:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXl5ksOTvCbHoZy4uoCLQVZki9bPO3Fqz8rkf98hSLZEDVd4xzeXCrnc/j0lsxTJ74rWoR6Rmlu3TCkWDKxwkHCVkd5kAKOHd/iZfiuTw== X-Google-Smtp-Source: AGHT+IEVfgwePOm/4vU4vXBmapWGcX/jQTns/yUfsY8phz6+6+wZBFSThuUaSYDRFLYZBNHH1Zi6 X-Received: by 2002:a05:620a:461e:b0:78a:4321:e1dc with SMTP id br30-20020a05620a461e00b0078a4321e1dcmr310938qkb.0.1711140804635; Fri, 22 Mar 2024 13:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711140804; cv=pass; d=google.com; s=arc-20160816; b=e0dTAzv5wegXFCQdSw4vERWzCGnSzwjpYeAFzIa9l9nBexOpJaIDJ3Jk6zIhAdqy/+ /1ImeCCm+WuzK/6CKvS42/cHZl4vDMHJeMCKuYUM7olwliE5TQ/gvDJtHJwiir15L1xw /XNGJTYGGW+d5ft1j+84lKKkjZRdqiXQJKNnEcMyfKm169SH53FYDC75v+b0CHBCcwZK zuMr42lglNPe/N7b+tTzmdfPpJ88oOJBwLSLZxiOsRR9pu+Harv5vTEeKYzWH8oBSvZZ E83RP1f08mqOeRsJott42YRogkkYvxLvE2EDXqGPDt/ljQXhyj63RVjRYhBqpzE0YeNB jjaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=ci1T0W7hck2YDPEEoQkTjQlEo6sqEjsMAhRmZZatUaA=; fh=y9sHqM9eZfGiSltD2h9HceYYoNYCRZKRZo0smwZdCkM=; b=r7+CGdkxh+ZXaNY/FsBfpm3h2LBA8c4sGIDCTOvveHZTFtqfCGoGFuDOXI67ooNxFT sZLxbIOpR04hfIW+iS1c1if9ShmfxFaYRN+y5X7js4idO6P6QGna1kXcJKQv/eW+ubKB 93FeQ0lHKDQ1G0xEd0ipJBe+79tbHEG8ZHWw0UH+dXHeCX7NZ+8h9WHp9Xa6bwYPvr0s 6WF46QuFw5DTY3dsbqGncq/3g3mCb4PuMWrjNbgICxCbuLzLvfj/C7+NSdsuBPXOD7aH jcvc2Xy8ktcUYnt202Utqswmn3LqYNTpDwR/9EywPMn8o1dUZ0HGZdHhAKpC+Ke+ID0c tgyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eAU+Yiox; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112021-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ow24-20020a05620a821800b00789dc60c293si368064qkn.708.2024.03.22.13.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 13:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eAU+Yiox; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112021-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F1C781C21DB8 for ; Fri, 22 Mar 2024 20:53:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B741E7F7FD; Fri, 22 Mar 2024 20:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eAU+Yiox" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3345356B78 for ; Fri, 22 Mar 2024 20:53:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711140796; cv=none; b=ghGojgDWMuCs/8+touPC5Lv8CLXoIv80JXU4wmqbKISoeIIdzpspMNDo3AxFwz2zgoO/8B9i5ICDkJzkWbd3rq3dMnZa8PU5dztNf7DNXkrtlYUd6ZLV5NT64Oqt3XUyV/kkSzBgZyuWh5DtWWi6Huu0XQfSxdqOvF+jQmvHYaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711140796; c=relaxed/simple; bh=yD4GxiI8BItI/TqD/6wjK/ShBvThgA8NijIdOlE+Xkk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FiVWmYQB28PWWSdqbH1+nw145DjucV2IlRz1nx6moQZZVbigD5gS+DQP+utgjVmReP7zaWNRnngjtZ3LQPPkYKRZw6PmBbLp/UgxpavU93zqW4s+mNVYQOO73qhTNzo0gSwRL9wafWwMuU9PeLJWgSYuRrsHiIeMlclGIyF8TVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eAU+Yiox; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e6ee9e3cffso1646004b3a.1 for ; Fri, 22 Mar 2024 13:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711140794; x=1711745594; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=ci1T0W7hck2YDPEEoQkTjQlEo6sqEjsMAhRmZZatUaA=; b=eAU+YioxdTJPgZU5Vsq+EVSGvhcjwTQYIzfpdW/uTquqwNFz556sQLmFG5xq7ZFoHK UQPwUM4Isv97wXjilR1Q+TwXf3Nz/TGtfcFTWYyEtTuJhASWMWikr7R6JJlz+1PuqSgz HGeUP2bfUNRK3EzxL/tCdsLBtg5kuDp+DCHVny431J1e5/raGWSJ4gM/H8v97z08Ngsj 9kvwjOQ9xLnR1dwx0GYyTByfdpfTkcHm3K1yGtpVPyfgVCZPrVd4OvJkzSMF/DzjDSCc 5aHXN622vgQsjJNnSM/K+Jh/WuacRvzUGv327Qgj8UiJ2oIFnCHnXXsoZYjxHoPseRWr sFqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711140794; x=1711745594; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ci1T0W7hck2YDPEEoQkTjQlEo6sqEjsMAhRmZZatUaA=; b=jD85ciYaWFN+ruPQyBIjaeZn7TSXp180mszBWLLm5iJRAKVhoX2kn9NPCDS/8bsjze HcvK+8dV8KBxw0HUz0IlmuZ1Ie5Vtl5oZMpN8vNanxvMe6boOf21Z4BhePzeOT0eqE9Q 7fwpgpkKGb2SQnIAS4CZuLZrIbWFPIUShCFa3h9O7oHwJYmS7RgSK1IQ9ZsimBta+1Af YDnBJFOBE/9NbHjeQksMwa8WVse/KIoSLyT3PsApTbhCzZRnpnYvS7M1iplg8pjwCwjw BVNWVPL//OvuVZprnSRN8i+NiuvdwQqNNfk29AdGqWPLi2vxoxb3Pp5H650tSw45qceW lWXQ== X-Forwarded-Encrypted: i=1; AJvYcCXMIqKOCr23VFQWahxFIGMg/e1944fk8UhC6W0Vs3G3L1Ml6ZW1O0FxcmWSmj2+7X5AXQr3pWnpYeb+wiEpOATRA7vnzTUz6VmIzoos X-Gm-Message-State: AOJu0YzVtx5Fpd+8sZmwTOGLY0RSmBGqQ3DKt6xMO92+SNk893I7OPhP PYr4PRvbDXjIaWqrLwjyX/loQj9RLX8uGES6/il7lh6/0Dr86RL2 X-Received: by 2002:a05:6a00:2d04:b0:6e7:6bc4:ef8c with SMTP id fa4-20020a056a002d0400b006e76bc4ef8cmr147113pfb.3.1711140794414; Fri, 22 Mar 2024 13:53:14 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id a19-20020a056a0011d300b006e740d23674sm194098pfu.140.2024.03.22.13.53.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 13:53:13 -0700 (PDT) Sender: Guenter Roeck Message-ID: <8d0b5818-b3dc-4211-8cdf-92e7b76e0fe5@roeck-us.net> Date: Fri, 22 Mar 2024 13:53:11 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 07/11] mm: vmalloc: Offload free_vmap_area_lock lock Content-Language: en-US To: Uladzislau Rezki Cc: linux-mm@kvack.org, Andrew Morton , LKML , Baoquan He , Lorenzo Stoakes , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , "Paul E . McKenney" , Joel Fernandes , Oleksiy Avramchenko References: <20240102184633.748113-1-urezki@gmail.com> <20240102184633.748113-8-urezki@gmail.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaW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RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/22/24 12:03, Uladzislau Rezki wrote: [ ... ] > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 22aa63f4ef63..0d77d171b5d9 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -2343,6 +2343,9 @@ struct vmap_area *find_vmap_area(unsigned long addr) > struct vmap_area *va; > int i, j; > > + if (unlikely(!vmap_initialized)) > + return NULL; > + > /* > * An addr_to_node_id(addr) converts an address to a node index > * where a VA is located. If VA spans several zones and passed > > > Could you please test it? > That fixes the problem. Thanks, Guenter