xen_disk: properly update stats in ioreq_release()
authorJan Beulich <JBeulich@suse.com>
Mon, 14 May 2012 16:46:33 +0000 (16:46 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 17 May 2012 10:43:33 +0000 (10:43 +0000)
commited5477664369c1e9de23b0e7e8f16a418573bd2a
tree9c33b5388625e2a46fd63c9bb76b9d82336fa9e0
parentc6961b7d38317fd48a8e86a8c2be4b9aeeb71ac0
xen_disk: 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.

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