Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1900934lqa; Tue, 30 Apr 2024 02:39:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/4adIplqODUOJpBc5GZP/qw+Qch0PuEqjOaYwiUfEuGqCCQthFX9HetK9rgw9nxDh+FpmNlBe7dXYjE47YQhHJCJO9Whs71qUHAYLMA== X-Google-Smtp-Source: AGHT+IHarZ9uzvBJCiCpciAvIIpMJXAp5enCsM3y6/oYS3NuTaQ9v2oFoCcYbNhTzv4IDYzCM2hb X-Received: by 2002:a50:8a94:0:b0:56e:2f39:c5d2 with SMTP id j20-20020a508a94000000b0056e2f39c5d2mr1485208edj.7.1714469975635; Tue, 30 Apr 2024 02:39:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714469975; cv=pass; d=google.com; s=arc-20160816; b=ppaRh9f9C6p+7PtF4E/cohadV+U9VuqB1HGOWNtU6pxANHJUiaXYb5haGKR3A6ecwb hjNvDFDUAx7iigB6ycMMmElLlzXS+WJpXXvh1QAy+yAJL0KsZsSnwDAFMY4mZgoFqB12 Wu2JMJ5nenC04BP6j7G8iDBL+dj3YSbfM4VJzBeCqpJ+uoTNofVhrEjZdiiR2nPTPS8F CzdU73csRQ1ihOh79m/S+ob7S9tWRbuPVYTtdJcpHcvXxVe6CQyqmRjEID2dNUAEG8N7 O8IEN396QosxWUxv/g3STmMyKSwN7Fn/A45NNZ6Gg+0t37jziZNRkZB4m982kxPzTRNJ 1DcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=2Hs+Fmh50ePdyMCPTIF6zApTyEfeJRbUndDt757fXKM=; fh=Cxwo/A+C89tjOzVq8R/o/DH+l+P6Lpt8VwbqwppZI0Y=; b=onEB2FUG9y/nu+/PjNbaXGL0r/dyuTHbluYizrOSYmyrd16SKxV6Njs9QJxqTqijld 1xjGcsugrA7v6qvYjIlSxdZfPrAC/ol6Vm2emMYuPbBYywTQL9XaHNsNhb2yRd2a6JlZ Hs3LHvm4LcsoVS+FR965KRzF3ynb9R1aqTAcpvtVJwv8ON97LJ0NCtBAOmi8udmF4yfA SfD0CSq33fHFIjp0YpP9N7vlKINwLKDCet544tJ1u/4DUJSEoZkT83ftkXM19BtIQCPy ni2xNl717+Xn/un9cgvTVtnPoAgAnbCygGHio1/PLKEs2HZaByLz8KdroCLdFMdPjPU/ bAXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWdbJMSN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y25-20020aa7c259000000b005725328868asi5000754edo.327.2024.04.30.02.39.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWdbJMSN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id EB4DE1F2500D for ; Tue, 30 Apr 2024 09:38:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15B5E199EAC; Tue, 30 Apr 2024 09:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hWdbJMSN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 321001292CE; Tue, 30 Apr 2024 09:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714469782; cv=none; b=b3BjnmAZQ8CbJbPRadG9nsP3IphLTQEAbVL70RLCqYA4orbYgS3FeF7l3f0w4Z+oa9XThuDhSE+u7ABqF+YNsxj+gImQzUI3VTzA2ANQlQ4jUNXD7nR/4ZHTtfUAcmY3UgUcLasOK3hv0yf9VmLLHZW+kPcUAnr/Q61nD5/fw3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714469782; c=relaxed/simple; bh=isV08BGQVxr2m6vFfC6FVBJx7wJ01ixie6zpVJy6Nww=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=exipB1+IaqPuMc3MQhJeQk1CEywxgcg+goiPJbPjhUMNBPclJNl3nlnGznqUF9Gr5orWII7lFO/hm7uD782LyveerxsjJldId5rP8o+ydxbVKRNWmDkN7xBb0iJI5ACMwB6o/D6r6Q829dN6e+peUxJnusrXsdkKMvNoSgONLVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hWdbJMSN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57949C4AF14; Tue, 30 Apr 2024 09:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714469781; bh=isV08BGQVxr2m6vFfC6FVBJx7wJ01ixie6zpVJy6Nww=; h=From:Subject:Date:To:Cc:From; b=hWdbJMSNu/Jski0Z/rYuSDjGrusG+nFcwzTRw8LAr93g2NfuxPTq7m2j2iLlI0FrY cN1un9FocW9SHa/fWYJwaadUnuTo795rn7AUh7jsSxrdjVIUHZLHAJGaHymHyYXAEU U3SBVvqcpXTKm7IcER9DU3WU1sgVAKHuTbFzlW6qzmSnZVQDg9AQ/SaRze6d7sJvbi H2u1U37P7snoBAH7TB5MJafNBvZTaiwYTrcp4+vLVBe12ZwAgsulj65lFQ3W7eKZq2 LPvFG+upTuFqv5Pj9ZMBbd2XDaoMKL9FRRnjlVsbH//DaDbuHjaCin9+xgef+xDGnq zYAi9UEb0s5TQ== From: Benjamin Tissoires Subject: [PATCH v2 0/3] bpf_wq followup series Date: Tue, 30 Apr 2024 11:36:09 +0200 Message-Id: <20240430-bpf-next-v2-0-140aa50f0f19@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIm7MGYC/23Myw6CMBCF4Vchs3ZMr0hc+R6GhcIAE00hU9JgS N/dytrlf3Ly7RBJmCJcqx2EEkeeQwlzqqCbHmEk5L40GGWccsbjcxkw0Lai0dpZr3xzIQvlvgg NvB3UvS09cVxn+Rxy0r/1D5I0KtR9Y62iuqudvb1IAr3Ps4zQ5py/lUfDHqEAAAA= To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Benjamin Tissoires X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714469778; l=921; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=isV08BGQVxr2m6vFfC6FVBJx7wJ01ixie6zpVJy6Nww=; b=mmDCYkonQ+6v4TD35B1xiAiFVlmwP/3ZsFb7uVnF46y3C8omyoXJZ3rG+7NY66XbHrJ/hdCTv u3Ash7+GLVJAG9skLfNKX0Kh6wo1RyYeqUG1tK5OBAYU4HHmzML/Lsl X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= Few patches that should have been there from day 1. Anyway, they are coming now. Signed-off-by: Benjamin Tissoires --- Changes in v2: - fix wq in hashtabs not being freed (and static call not being used) - Link to v1: https://lore.kernel.org/r/20240425-bpf-next-v1-0-1d8330e6c643@kernel.org --- Benjamin Tissoires (3): bpf: do not walk twice the map on free bpf: do not walk twice the hash map on free selftests/bpf: drop an unused local variable kernel/bpf/arraymap.c | 15 ++++----- kernel/bpf/hashtab.c | 49 ++++++++--------------------- tools/testing/selftests/bpf/prog_tests/wq.c | 2 -- 3 files changed, 21 insertions(+), 45 deletions(-) --- base-commit: 1bba3b3d373dbafae891e7cb06b8c82c8d62aba1 change-id: 20240425-bpf-next-2114350587e3 Best regards, -- Benjamin Tissoires