From: "Jan Beulich" Subject: qemu xen_disk mis-accounting? Date: Thu, 10 May 2012 08:49:17 +0100 Message-ID: <4FAB8F1D0200007800082A79@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org ioreq_release() gets called from two places, yet only in the blk_send_response_all() case does it appear appropriate to decrement blkdev->requests_finished. In the error handling path of blk_handle_requests() I would think it should decrement blkdev->requests_inflight instead. While blkdev->requests_finished isn't being used anywhere, blkdev->requests_inflight serves blk_handle_requests() to tell whether to call qemu_bh_schedule(), so this isn't a purely cosmetic mistake afaics (and the error path in question is actually being consistently exercised by our frontends probing for the packet command extension - yes, it should have been implemented via xenstore node presence, but the author failed to do so back then). Jan