Prevent that fio hangs when using io_submit_mode=offload
authorBart Van Assche <bvanassche@acm.org>
Sat, 1 Aug 2020 18:01:06 +0000 (11:01 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sat, 1 Aug 2020 18:25:45 +0000 (11:25 -0700)
commitd89ee9f4c7ac7e0af994e4a4ec02ef07b1698bb9
treee858837899ac8dab8ddc26dca43f1ac6f704f2e6
parentb5aba537d844f73187eb931179ac59e7da570e7c
Prevent that fio hangs when using io_submit_mode=offload

This patch has been tested by running the following shell command:

for ((i=0;i<1000;i++)); do echo $i; python3 t/run-fio-tests.py -o 10; done

Fixes: d28174f0189c ("workqueue: ensure we see deferred error for IOs")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
rate-submit.c