diff options
| author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-10-27 23:54:42 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-31 09:55:30 -0700 |
| commit | dc5e8bfcd12eec8032be83b334896c103cdef1aa (patch) | |
| tree | 3209e2e889c85775cc96ee95e0934daded8aeed3 /scripts/bpf_helpers_doc.py | |
| parent | 5ce7f3f46f6b4a01dd2e2e7230351087034d0d1b (diff) | |
net: forcedeth: Replace context and lock check with a lockdep_assert()
nv_update_stats() triggers a WARN_ON() when invoked from hard interrupt
context because the locks in use are not hard interrupt safe. It also has
an assert_spin_locked() which was the lock check before the lockdep era.
Lockdep has way broader locking correctness checks and covers both issues,
so replace the warning and the lock assert with lockdep_assert_held().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Rain River <rain.1986.08.12@gmail.com>
Cc: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions
