Re: [PATCH] btrfs: prevent hung check firing during long sync IO

2020-08-19 Thread David Sterba
On Wed, Aug 19, 2020 at 06:14:51PM +0800, Xianting Tian wrote: > For sync and flush io, it may take long time to complete. > So it's better to use wait_for_completion_io_timeout() in a > while loop to avoid prevent hung check and crash(when set > /proc/sys/kernel/hung_task_panic). I wonder if

[PATCH] btrfs: prevent hung check firing during long sync IO

2020-08-19 Thread Xianting Tian
For sync and flush io, it may take long time to complete. So it's better to use wait_for_completion_io_timeout() in a while loop to avoid prevent hung check and crash(when set /proc/sys/kernel/hung_task_panic). This is similar to prevent hung task check in submit_bio_wait(), blk_execute_rq().