]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/scsifront: don't request a slot on the ring until request is ready
authorJuergen Gross <jgross@suse.com>
Fri, 2 Dec 2016 06:15:45 +0000 (07:15 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:31 +0000 (15:55 -0500)
commit83d1825ced7fa221ec54ddab4a26e8e2465f3b30
treeb76a0bd3bb631574621781e2b25b1a5a61581e12
parentabb6d9167697bb935e6b2ebf8bdf0526df854d58
xen/scsifront: don't request a slot on the ring until request is ready

Instead of requesting a new slot on the ring to the backend early, do
so only after all has been setup for the request to be sent. This
makes error handling easier as we don't need to undo the request id
allocation and ring slot allocation.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 25497392

(cherry picked from commit 3da96be58f2c8aaa86cfe78b16f837e610dfcfe2)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/scsi/xen-scsifront.c