]> www.infradead.org Git - users/hch/configfs.git/commit
net: dst_cache: add two DEBUG_NET warnings
authorEric Dumazet <edumazet@google.com>
Fri, 31 May 2024 13:26:36 +0000 (13:26 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Jun 2024 01:50:09 +0000 (18:50 -0700)
commit2fe6fb36c781b50482b1c3323fb526bc07d1af59
treeb2d9e8cd7aebc053ef57a3b280f30b0c32b6ac36
parentcf28ff8e4c02e1ffa850755288ac954b6ff0db8c
net: dst_cache: add two DEBUG_NET warnings

After fixing four different bugs involving dst_cache
users, it might be worth adding a check about BH being
blocked by dst_cache callers.

DEBUG_NET_WARN_ON_ONCE(!in_softirq());

It is not fatal, if we missed valid case where no
BH deadlock is to be feared, we might change this.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/20240531132636.2637995-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dst_cache.c