diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-09-29 22:25:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-29 14:02:53 -0700 |
commit | a17409e73bc559e9619d478fab92c8a160b77ff9 (patch) | |
tree | 7f14648b8f0c480bf71f8603dfeb0ee57c2ad9b9 /lib/lockref.c | |
parent | 453590a8b61034bb08f9bfb0543a6b2244d66a3e (diff) |
net: cxgb3: Cleanup in_interrupt() usage
t3_sge_stop() is called from task context and from error handlers in
interrupt context. It relies on in_interrupt() to differentiate the
contexts.
in_interrupt() is deprecated as it is ill defined and does not provide what
it suggests.
Instead of replacing it with some other construct, simply split the
function into t3_sge_stop_dma(), which can be called from any context, and
t3_sge_stop() which can be only called from task context.
This has the advantage that any bogus invocation of t3_sge_stop() from
wrong contexts can be caught by debug kernels instead of being papered over
by the conditional.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions