]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-blkfront: save uncompleted reqs in blkfront_resume()
authorBob Liu <bob.liu@oracle.com>
Mon, 27 Jun 2016 08:13:04 +0000 (04:13 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Jun 2016 14:52:46 +0000 (07:52 -0700)
commitd8b31d83462930b9eeedde74325223c92a2e4b5a
tree195160bb39d705fbed58ab19ea87419675dab2cb
parent4e80861e955a365f0ed2c467e243c47b58da1170
xen-blkfront: save uncompleted reqs in blkfront_resume()

Uncompleted reqs used to be 'saved and resubmitted' in blkfront_recover() during
migration, but that's too later after multi-queue introduced.

After a migrate to another host (which may not have multiqueue support), the
number of rings (block hardware queues) may be changed and the ring and shadow
structure will also be reallocated.
So that blkfront_recover() can't 'save and resubmit' the real uncompleted reqs
because shadow structure has been reallocated.

This patch fixes this issue by moving the 'save' logic out of blkfront_recover()
to earlier place:blkfront_resume().

Orabug: 23340426
Signed-off-by: Bob Liu <bob.liu@oracle.com>
drivers/block/xen-blkfront.c