aio: stop submit_thread earlier

This commit is contained in:
Thomas Schoebel-Theuer 2020-01-22 19:14:40 +01:00 committed by Thomas Schoebel-Theuer
parent ca3cda8a01
commit d63b5e72b0

View File

@ -911,7 +911,8 @@ static int aio_submit_thread(void *data)
wait_event_interruptible_timeout(
tinfo->event,
atomic_read(&tinfo->queued_sum) > 0,
atomic_read(&tinfo->queued_sum) > 0 ||
tinfo->should_terminate,
HZ / 4);
mref_a = _dequeue(tinfo);