On 5/2/20 7:54 PM, 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. Applied, thanks. -- Jens Axboe