block/null: Latency simulation by adding new option "latency-ns"
commite5e51dd3af6a0872dedce290ee41437b5aeed109
authorFam Zheng <famz@redhat.com>
Wed, 1 Apr 2015 01:45:38 +0000 (1 09:45 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:09 +0000 (28 15:36 +0200)
treed5ff9a3ea2164c674e46831e1a11b4b13b7ca8cf
parent9eddd6a4b3b187ba50038800b6e4aeda4973b365
block/null: Latency simulation by adding new option "latency-ns"

Aio context switch should just work because the requests will be
drained, so the scheduled timer(s) on the old context will be freed.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1427852740-24315-2-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/null.c
qapi/block-core.json