On 2020-05-02 18:54, Ming Lei wrote: > 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. Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>