xen-blkfront: fix accounting of reqs when migrating
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 2 Feb 2015 11:28:21 +0000 (11:28 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 10 Feb 2015 16:04:45 +0000 (16:04 +0000)
Current migration code uses blk_put_request in order to finish a request
before requeuing it. This function doesn't update the statistics of the
queue, which completely screws accounting. Use blk_end_request_all instead
which properly updates the statistics of the queue.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-and-Tested-by: Ouyang Zhaowei (Charles) <ouyangzhaowei@huawei.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: xen-devel@lists.xenproject.org
drivers/block/xen-blkfront.c

Simple merge