diff options
author | Alexander Lobakin <[email protected]> | 2022-03-23 13:43:53 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-03-23 10:40:41 -0700 |
commit | 5a3156932da06f09953764de113419f254086faf (patch) | |
tree | 3bad49a37029667e33bfee2f30e9642d379576d1 /include/linux/compiler-gcc.h | |
parent | 32d53c0aa3a7b727243473949bad2a830b908edc (diff) |
ice: don't allow to run ice_send_event_to_aux() in atomic ctx
ice_send_event_to_aux() eventually descends to mutex_lock()
(-> might_sched()), so it must not be called under non-task
context. However, at least two fixes have happened already for the
bug splats occurred due to this function being called from atomic
context.
To make the emergency landings softer, bail out early when executed
in non-task context emitting a warn splat only once. This way we
trade some events being potentially lost for system stability and
avoid any related hangs and crashes.
Fixes: 348048e724a0e ("ice: Implement iidc operations")
Signed-off-by: Alexander Lobakin <[email protected]>
Tested-by: Michal Kubiak <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Acked-by: Tony Nguyen <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions