]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commit
xendisk: properly update stats in ioreq_release()
authorJan Beulich <jbeulich@suse.com>
Fri, 29 Jun 2012 15:47:34 +0000 (16:47 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 29 Jun 2012 15:47:34 +0000 (16:47 +0100)
commitd36580ff7ef2041ae393c67dce7040409a7b6900
tree3259b4c9329c623d1b8927c779ada1bd0eebd1bd
parentce6d9b1b2f9c6a5ca2500e03d0ef8b453bc4bf53
xendisk: properly update stats in ioreq_release()

While for the "normal" case (called from blk_send_response_all())
decrementing requests_finished is correct, doing so in the parse error
case is wrong; requests_inflight needs to be decremented instead.

upstream-commit: ed5477664369c1e9de23b0e7e8f16a418573bd2a

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
hw/xen_disk.c