diff options
| author | Paolo Bonzini | 2012-03-30 13:17:12 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2012-04-05 14:54:40 +0200 |
| commit | 9f25eccc1cdbe6ee985b7a5954fa621c2012912e (patch) | |
| tree | c5073fdee6f93b78e56a14e87ee00182c3dd6300 /block | |
| parent | block: fix streaming/closing race (diff) | |
| download | qemu-9f25eccc1cdbe6ee985b7a5954fa621c2012912e.tar.gz qemu-9f25eccc1cdbe6ee985b7a5954fa621c2012912e.tar.xz qemu-9f25eccc1cdbe6ee985b7a5954fa621c2012912e.zip | |
block: set job->speed in block_set_speed
There is no need to do this in every implementation of set_speed
(even though there is only one right now).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
| -rw-r--r-- | block/stream.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/stream.c b/block/stream.c index f186bfd4f5..61ff7a236e 100644 --- a/block/stream.c +++ b/block/stream.c @@ -236,7 +236,6 @@ static int stream_set_speed(BlockJob *job, int64_t value) if (value < 0) { return -EINVAL; } - job->speed = value; ratelimit_set_speed(&s->limit, value / BDRV_SECTOR_SIZE); return 0; } |
