diff options
| author | Ming Lei <[email protected]> | 2020-05-03 09:54:22 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-05-12 20:32:42 -0600 |
| commit | e6249cdd46e43a7d3bdb8cce5fe24565d6c11e94 (patch) | |
| tree | eb64d5b35a2d76e84afdcea844f39b2709db398c /tools/perf/scripts/python | |
| parent | 27eb3af9a37a85ca35f82830a8fc29753700058a (diff) | |
block: add blk_io_schedule() for avoiding task hung in sync dio
Sync dio could be big, or may take long time in discard or in case of
IO failure.
We have prevented task hung in submit_bio_wait() and blk_execute_rq(),
so apply the same trick for prevent task hung from happening in sync dio.
Add helper of blk_io_schedule() and use io_schedule_timeout() to prevent
task hung warning.
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Cc: Salman Qazi <[email protected]>
Cc: Jesse Barnes <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions