xen_disk: fix io accounting
bdrv_acct_done was called unconditional. But in case the ioreq has no segments there is no matching bdrv_acct_start call. This could lead to bogus accounting values. Found by code inspection. Signed-off-by: NOlaf Hering <olaf@aepfle.de> Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
Showing
想要评论请 注册 或 登录