]> git.proxmox.com Git - mirror_qemu.git/commit
throttle: factor out duplicate code
authorPradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
Tue, 28 Feb 2017 09:31:46 +0000 (10:31 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 28 Feb 2017 09:31:46 +0000 (10:31 +0100)
commita2a7862ca9ab1689f094c319ec92ecbd6fd1b46d
treeb0128ff97d248639ad163a7455233bd2ff35a74e
parentb8bbdb886ebf9cce631e5e792b328eed98511a38
throttle: factor out duplicate code

This patch removes the redundant throttle code that was present in
block and fsdev device files. Now the common code is moved
to a single file.

Signed-off-by: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
(fix indent nit, Greg Kurz)
Signed-off-by: Greg Kurz <groug@kaod.org>
blockdev.c
fsdev/qemu-fsdev-opts.c
include/qemu/throttle-options.h [new file with mode: 0644]