diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-01-08 14:52:57 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-10 15:11:59 -0800 |
| commit | 7a1ff3545adeec5dc65c3063c2f084500d6f7014 (patch) | |
| tree | 27d8ae8e8dce1ac6fa7e2c71741b396f9e155c5b /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 799a4912eea74c667da1c8167f93bf2d1508a89e (diff) | |
selftests: net: py: ensure defer() is only used within a test case
I wasted a couple of hours recently after accidentally adding
a defer() from within a function which itself was called as
part of defer(). This leads to an infinite loop of defer().
Make sure this cannot happen and raise a helpful exception.
I understand that the pair of _ksft_defer_arm() calls may
not be the most Pythonic way to implement this, but it's
easy enough to understand.
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20260108225257.2684238-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
