block: Pause block jobs in bdrv_drain_all
commit69da3b0b47c8f6016e9109fcfa608e9e7e99bc05
authorFam Zheng <famz@redhat.com>
Fri, 3 Apr 2015 14:05:19 +0000 (3 22:05 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:09 +0000 (28 15:36 +0200)
tree6a012964514769d9345da94a20bd8807401c7a64
parent751ebd76e654bd1e65da08ecf694325282b4cfcc
block: Pause block jobs in bdrv_drain_all

This is necessary to suppress more IO requests from being generated from
block job coroutines.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 1428069921-2957-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c