mirror: create mirror_throttle helper
commit49efb1f5b0ea45bdb75d578460a7866a58167d1f
authorDenis V. Lunev <den@openvz.org>
Thu, 14 Jul 2016 13:33:24 +0000 (14 16:33 +0300)
committerJeff Cody <jcody@redhat.com>
Tue, 19 Jul 2016 20:54:46 +0000 (19 16:54 -0400)
tree06c6d4908b10590cb9837b16f3c26840328aa1df
parent531509ba2856ca8efdcf0df18a7dec66af0d36ee
mirror: create mirror_throttle helper

The patch also places last_pause_ns from stack in mirror_run into
MirrorBlockJob structure. This helper will be useful in next patches.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1468503209-19498-4-git-send-email-den@openvz.org
CC: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
CC: Eric Blake <eblake@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Fam Zheng <famz@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/mirror.c