diff options
author | Bart Van Assche <[email protected]> | 2017-04-27 10:11:15 -0700 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2017-04-27 17:04:27 -0400 |
commit | 7083abbbfc4fa706ff72d27d33a5214881979336 (patch) | |
tree | 2fa2f90642cc55502a2f827620d6fd60a6f3e589 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 89bfce763e43fa4897e0d3af6b29ed909df64cfd (diff) |
dm mpath: avoid that path removal can trigger an infinite loop
If blk_get_request() fails, check whether the failure is due to a path
being removed. If that is the case, fail the path by triggering a call
to fail_path(). This avoids that the following scenario can be
encountered while removing paths:
* CPU usage of a kworker thread jumps to 100%.
* Removing the DM device becomes impossible.
Delay requeueing if blk_get_request() returns -EBUSY or -EWOULDBLOCK,
and the queue is not dying, because in these cases immediate requeuing
is inappropriate.
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions