diff options
author | Petri Latvala <petri.latvala@intel.com> | 2019-12-03 13:15:37 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-12-05 12:19:08 +0200 |
commit | 59be90b3c76113d03a1bb095c4d4585e51058f4a (patch) | |
tree | 0744444adadaf7cd9b9a2500270df1a81a500119 /lib/intel_batchbuffer.c | |
parent | e26259c7570390aa0664b250cb842439598bcbff (diff) |
runner: Don't wait forever for processes to die
While the originally written timeout for process killing (2 seconds)
was way too short, waiting indefinitely is suboptimal as well. We're
seeing cases where the test is stuck for possibly hours in
uninterruptible sleep (IO). Wait a fairly longer selected time period
of 2 minutes, because even making progress for that long means the
machine is in bad enough state to require a good kicking and booting.
v2:
- Abort quicker if kernel is tainted (Chris)
- Correctly convert process-exists check with kill() to process-does-not-exist
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_batchbuffer.c')
0 files changed, 0 insertions, 0 deletions