[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 01/41] blockjobs: fix set-speed kick
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PULL 01/41] blockjobs: fix set-speed kick |
Date: |
Tue, 13 Mar 2018 17:17:23 +0100 |
From: John Snow <address@hidden>
If speed is '0' it's not actually "less than" the previous speed.
Kick the job in this case too.
Signed-off-by: John Snow <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
blockjob.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blockjob.c b/blockjob.c
index 801d29d849..afd92db01f 100644
--- a/blockjob.c
+++ b/blockjob.c
@@ -499,7 +499,7 @@ void block_job_set_speed(BlockJob *job, int64_t speed,
Error **errp)
}
job->speed = speed;
- if (speed <= old_speed) {
+ if (speed && speed <= old_speed) {
return;
}
--
2.13.6
- [Qemu-block] [PULL 00/41] Block layer patches, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 01/41] blockjobs: fix set-speed kick,
Kevin Wolf <=
- [Qemu-block] [PULL 02/41] blockjobs: model single jobs as transactions, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 06/41] iotests: add pause_wait, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 03/41] Blockjobs: documentation touchup, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 04/41] blockjobs: add status enum, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 05/41] blockjobs: add state transition table, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 08/41] blockjobs: add ABORTING state, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 07/41] blockjobs: add block_job_verb permission table, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 10/41] blockjobs: add NULL state, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 11/41] blockjobs: add block_job_dismiss, Kevin Wolf, 2018/03/13
- [Qemu-block] [PULL 16/41] blockjobs: add waiting status, Kevin Wolf, 2018/03/13