mlxsw: core_env: Defer handling of module temperature warning events
authorIdo Schimmel <idosch@nvidia.com>
Wed, 15 Sep 2021 10:13:07 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 15:17:15 +0000 (16:17 +0100)
commit163f3d2dd01cf9b8f58b56fe94ce517e468385a9
treeca0c8944b55fc8d6bb700a7b5cad4862a6084615
parent25a91f835a7b0964455594d11253060bf5b480b4
mlxsw: core_env: Defer handling of module temperature warning events

Module temperature events are currently handled in softIRQ context,
requiring the 'module_info_lock' to be a spin lock. In future patchsets
we will need to be able to hold the lock while sleeping.

Therefore, defer handling of these events using a work queue so that the
next patch will be able to convert the lock to a mutex.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c