diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-10-27 23:54:43 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-11-05 12:09:31 -0800 |
commit | 514436857128cad07015dc6d1d9842113ac2e798 (patch) | |
tree | c8179456ccde637c7092e5c686bc3c3264911007 /net/ipv4/inet_diag.c | |
parent | 6c6132032d7ac733d9899015a6f39d433ea8e999 (diff) |
net: mlx5: Replace in_irq() usage
mlx5_eq_async_int() uses in_irq() to decide whether eq::lock needs to be
acquired and released with spin_[un]lock() or the irq saving/restoring
variants.
The usage of in_*() in drivers is phased out and Linus clearly requested
that code which changes behaviour depending on context should either be
seperated or the context be conveyed in an argument passed by the caller,
which usually knows the context.
mlx5_eq_async_int() knows the context via the action argument already so
using it for the lock variant decision is a straight forward replacement
for in_irq().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/ipv4/inet_diag.c')
0 files changed, 0 insertions, 0 deletions