diff options
author | 2019-06-16 10:26:07 +0300 | |
---|---|---|
committer | 2019-06-27 20:51:04 +0300 | |
commit | 1a276003111c0404f6bfeffe924c5a21f482428b (patch) | |
tree | acccf744f18d1396dc547cd9ca5143f1bc1c72d4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wil6210: set WIL_WMI_CALL_GENERAL_TO_MS as wmi_call timeout (diff) | |
download | wireguard-linux-1a276003111c0404f6bfeffe924c5a21f482428b.tar.xz wireguard-linux-1a276003111c0404f6bfeffe924c5a21f482428b.zip |
wil6210: drop old event after wmi_call timeout
This change fixes a rare race condition of handling WMI events after
wmi_call expires.
wmi_recv_cmd immediately handles an event when reply_buf is defined and
a wmi_call is waiting for the event.
However, in case the wmi_call has already timed-out, there will be no
waiting/running wmi_call and the event will be queued in WMI queue and
will be handled later in wmi_event_handle.
Meanwhile, a new similar wmi_call for the same command and event may
be issued. In this case, when handling the queued event we got WARN_ON
printed.
Fixing this case as a valid timeout and drop the unexpected event.
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions