block: write: Handle COR dependency after I/O throttling
authorKevin Wolf <kwolf@redhat.com>
Tue, 3 Dec 2013 13:30:44 +0000 (14:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:02 +0000 (17:40 +0100)
commit244eadef5c797c674b0aef96366671be4b33d03a
tree1ba7ba1ff3da43cc6098a094f6b69b8f4975140e
parentb404f72036716ab8ace04b83a8f0a93be4739a6a
block: write: Handle COR dependency after I/O throttling

First waiting for all COR requests to complete and calling the
throttling function afterwards means that the request could be delayed
and we still need to wait for the COR request even if it was issued only
after the throttled write request.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block.c