Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1928884lqa; Tue, 30 Apr 2024 03:43:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkyov+2HVBf0ANG+IG7QwvE1MKLWlOVdKOdpYKTLY+/EMdylgSoOTdJI0Arwe+jpo0Y5CcUKJ0jrCeKH9b0VOThZuGKc8xWNyDilMI3g== X-Google-Smtp-Source: AGHT+IHu5qau9zuU2CO1NfDs8y3iUg+dKlnwHWYOgTlxrANc5KnoNfuBWUXSh+3NTcmyCV+C6Sjb X-Received: by 2002:a05:6122:16a8:b0:4d4:1a1a:6db7 with SMTP id 40-20020a05612216a800b004d41a1a6db7mr12631819vkl.2.1714473828178; Tue, 30 Apr 2024 03:43:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714473828; cv=pass; d=google.com; s=arc-20160816; b=qtL5W231oht60cdf7PArKNPsNgMzkv8Bb5TgQz6j5HrVl0LYO8PkYwlLozU9zd/y3V GVFF2bz35AEMP1+YwTYC5+7C91EWL2x58xkD06Z399dkpUg207e5SWd8ckfY9AY5ig2E s/PikYbzpR0w2eCnHU9Lf4ZuI0uGY7rUa8TY9pk8ebvdzRjEHvVNiXoBbduoJnJ4dfDy lNdj0RL8klaikzKesdtPrqopOaLHr5trFTOE/LV9ikC3/ilClNNnYwBvnJY0nQkchmEM Or6qzwbTvwe/lVlgx+T6TAzZa3uWhVVecfk0AWScU5PTGKB9A+grxZbm5Gh38s6FjFB9 hdHA== 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=FYHuWTeBGCecBhmTZOVf3k3lbV+TmOyJuYXoDig709M=; fh=Cxwo/A+C89tjOzVq8R/o/DH+l+P6Lpt8VwbqwppZI0Y=; b=u6cKLrC5GbatDHeiLnk5lZ6IqCPF9dKxT0RMozMlzYBSeGe312Ef+gXA+GEvciMa8M /VQfaeukI5JmUOErXEukVitkI6QF2wT/fAdiKwxARec484Q/L0FlL7Sfbw6HIfdNI1vE O2EpA6/CrEnQ4FRpIwem7bJnpSalt+IW0RKcLDlZn5uFDADfoXHyY82o2Tc74yujQc2C +S5vJFgmqX7YqTz9XrDAKLOC8OAJbFwEKNO/8eKXCm60+xLCyA18f8tZTmTexrwW1HhI yLZ4CJ9g49VMhak1KhGsHS5dPghcowUBXcS4ikD3AOli3k3JkSn06PBsuDmR29WAWZkd wnXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zii2OQW7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163784-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 os38-20020a05620a812600b0078efd19c3bdsi27675990qkn.623.2024.04.30.03.43.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163784-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=@kernel.org header.s=k20201202 header.b=Zii2OQW7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163784-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163784-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DDF261C21FAD for ; Tue, 30 Apr 2024 10:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58AEC12C54B; Tue, 30 Apr 2024 10:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Zii2OQW7" 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 7AD95129E81; Tue, 30 Apr 2024 10:43:33 +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=1714473813; cv=none; b=PQBlWZnQijXcpC8QMnpNXz1ZUPlZxk3oTgFkSIrCAvQQibAYa0PxjJyIREdhFP8Yte28F1jEa7QH81ShjhFji3HKUm7Z9UmGkLmzsNbrDL8kBAjxOxlFUaMYqrTkr3BmcgQf7I3F40sxyTr+tyy9laJ1lTduJr6+EX0qMZ5nFHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473813; c=relaxed/simple; bh=pmPJ41wWRetcjAe+Ucdl6PaA5Nla2eyRnT5tyL4d71c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=tW0XWcmyftrhMEdJQaHnWuuauLdP1RwzQVVd9SPjR4dsgeFbcSYjWctyYNcL/oImea6xUJyuwSws9qPGNiPuM/dNPc53XDHs9g4M19sOr50h2vpGmkRN8Sd3NKb92EmoHw3ZgWk2e+bAOH5c4L9ZMsaOfwvrPlRoa0h5xIf5rnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Zii2OQW7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AEF0C4AF14; Tue, 30 Apr 2024 10:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714473813; bh=pmPJ41wWRetcjAe+Ucdl6PaA5Nla2eyRnT5tyL4d71c=; h=From:Subject:Date:To:Cc:From; b=Zii2OQW7u80T2Qx3WpabNscbjTM1oC2mLsYNQCIN1yNXjSV3Y/0nw6slPH8k+j0E0 K4y+MSiO5V6Fbt63Gxxl/gdFL2+vyp5J1KqyHmPeiSvXHVgEIMCutyToy7ggpnfm6J Lzy39aAUzS1PmTWNE8ZWYTwX0FSzYcKYmfphFi0cMl2pzdxYVIya3ponX7+MuZs/aQ 9JRgNzbK5Db+5GOtc4bx3Td+RgO44Y2lStEE7Y2O5EeO9A+v0s4BfJ5Lly1eFiX7GP 80oJEc1r0wJM5rofYLuQLJYxIE2PSi2ZePoiFyyrBISWbILJ7YerVWIn48eif8FhXX C5ElXXwLXSgGw== From: Benjamin Tissoires Subject: [PATCH bpf-next v3 0/3] bpf_wq followup series Date: Tue, 30 Apr 2024 12:43:23 +0200 Message-Id: <20240430-bpf-next-v3-0-27afe7f3b17c@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=H4sIAEvLMGYC/2WNyw6CMBREf4XctTW3L0RW/odxgXALjaaQljQYw r9bm5hgXE5mzpkVAnlLAepiBU/RBju6FOShgHZoXE/MdimDQKFQCc3uk2GOlpkJzpXUqKsTSUj zyZOxS1Zd4buCW2oGG+bRv/JH5Ln/10XOkPGukhKpbEslLw/yjp7H0ffZEsWOlLgjxYdU2DQaD Rp+/iG3bXsD5UhBwOUAAAA= 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=1714473809; l=1120; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=pmPJ41wWRetcjAe+Ucdl6PaA5Nla2eyRnT5tyL4d71c=; b=JBijTWQ4/ntor0BHc4BqUYpOGdwARsOol3Q76Psmfbc25fqiJ83J4Gg5rJ/mUULlLI/YR7Bua upTSshfDCSoCttL7Vy246aKkXk7HeH69gEZElkcfulDaNM8BAiYt5Zs 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 v3: - fixed bpf_test module not being able to be removed, because the bpf_wq was never freed - Link to v2: https://lore.kernel.org/r/20240430-bpf-next-v2-0-140aa50f0f19@kernel.org 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