summaryrefslogtreecommitdiff
path: root/rust/helpers/rcu.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-09-26 17:54:36 -0700
committerJakub Kicinski <kuba@kernel.org>2025-09-26 17:54:37 -0700
commit1493c18fe8696bfc758a97130a485fc4e08387f5 (patch)
treee1db1da3d6e6df23ff1020aafbb13d1002a6f6a6 /rust/helpers/rcu.c
parent9ccec266234a960c63d56fa078ec2873d05a3c16 (diff)
parentfca6ff9191bd60167d5fe1d1fea89bf988d9e355 (diff)
Merge branch 'selftests-mark-auto-deferring-functions-clearly'
Petr Machata says: ==================== selftests: Mark auto-deferring functions clearly selftests/net/lib.sh contains a suite of iproute2 wrappers that automatically schedule the corresponding cleanup through defer. The fact they do so is however not immediately obvious, one needs to know which functions are handling the deferral behind the scenes, and which expect the caller to handle cleanups themselves. A convention for these auto-deferring functions would help both writing and patch review. This patchset does so by marking these functions with an adf_ prefix. We already have a few such functions: forwarding/lib.sh has adf_mcd_start() and a few selftests add private helpers that conform to this convention. Patches #1 to #8 gradually convert individual functions, one per patch. Patch #9 renames an auto-deferring private helpers named dfr_* to adf_*. The plan is not to retro-rename all private helpers, but I happened to know about this one. Patches #10 to #12 introduce several autodefer helpers for commonly used forwarding/lib.sh functions, and opportunistically convert straightforward instances of 'action; defer counteraction' to the new helpers. Patch #13 adds some README verbiage to pitch defer and the adf_* convention. ==================== Link: https://patch.msgid.link/cover.1758821127.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/rcu.c')
0 files changed, 0 insertions, 0 deletions