diff options
| author | Jakub Kicinski <[email protected]> | 2017-05-28 17:53:01 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-05-30 11:27:06 -0400 |
| commit | 9b5655767c6763f0322d8292f3d9dbc43816d22e (patch) | |
| tree | a1727e6edd57cb54c7543020b825a1b5828437dd /tools/perf/scripts/python | |
| parent | eefbde7e10026273a81f54ab3b76e959f4f0ef09 (diff) | |
nfp: don't wait for resources indefinitely
There is currently no timeout to the resource and lock acquiring
loops. We printed warnings and depended on user sending a signal
to the waiting process to stop the waiting. This doesn't work
very well when wait happens out of a work queue. The simplest
example of that is PCI probe. When user loads the module and card
is in a broken state modprobe will wait forever and signals sent
to it will not actually reach the probing thread.
Make sure all wait loops have a time out. Set the upper wait time
to 60 seconds to stay on the safe side.
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions