block: disable I/O limits at the beginning of bdrv_close()
commit99b7e7756780cec03fe5175db0f53b2fffa9426b
authorAlberto Garcia <berto@igalia.com>
Fri, 25 Sep 2015 13:41:44 +0000 (25 16:41 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2015 11:48:29 +0000 (2 13:48 +0200)
tree1ae09546da4f5e56feb4c111c0f8bc0255eb3399
parentbb3c801df7ed454b663312326bc29c8b9c2e4de6
block: disable I/O limits at the beginning of bdrv_close()

Disabling I/O limits from a BDS also drains all pending throttled
requests, so it should be done at the beginning of bdrv_close() with
the rest of the bdrv_drain() calls before the BlockDriver is closed.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c