diff options
author | Netanel Belgazal <netanel@amazon.com> | 2017-06-11 15:42:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-11 23:36:45 +0300 |
commit | a77c1aafcc906f657d1a0890c1d898be9ee1d5c9 (patch) | |
tree | a63a4ac44158e16d8a523ac42dc0fefbc98f5fbd /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | b87fa0fafef4b16495740432f4eb8262efa500d0 (diff) | |
download | linux-a77c1aafcc906f657d1a0890c1d898be9ee1d5c9.tar.xz |
net: ena: fix rare uncompleted admin command false alarm
The current flow to detect admin completion is:
while (command_not_completed) {
if (timeout)
error
check_for_completion()
sleep()
}
So in case the sleep took more than the timeout
(in case the thread/workqueue was not scheduled due to higher priority
task or prolonged VMexit), the driver can detect a stall even if
the completion is present.
The fix changes the order of this function to first check for
completion and only after that check if the timeout expired.
Fixes: 1738cd3ed342 ("Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions