diff options
| author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-05-29 03:53:01 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-05-30 18:27:06 +0300 |
| commit | 9b5655767c6763f0322d8292f3d9dbc43816d22e (patch) | |
| tree | a1727e6edd57cb54c7543020b825a1b5828437dd /tools/perf/scripts/python/syscall-counts.py | |
| parent | eefbde7e10026273a81f54ab3b76e959f4f0ef09 (diff) | |
| download | linux-9b5655767c6763f0322d8292f3d9dbc43816d22e.tar.xz | |
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 <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
