OSDN Git Service

qed: Use a coroutine for need_check_timer
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2016 15:04:59 +0000 (16:04 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:15 +0000 (14:51 +0200)
commitc0e8f98927929b65ffbfb320b7a1c79e0e620006
tree7e51c39e8f83e0e0aff5c07474e196f389b43ef2
parent48cc565e767d1cb4965150d258ebd15a1b3de488
qed: Use a coroutine for need_check_timer

This fixes the last place where we degraded from AIO to actual blocking
synchronous I/O requests. Putting it into a coroutine means that instead
of blocking, the coroutine simply yields while doing I/O.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed.c