]> git.baikalelectronics.ru Git - kernel.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)
committerJuergen Gross <jgross@suse.com>
Fri, 9 Dec 2016 09:59:13 +0000 (10:59 +0100)
commitaab2d38537952a98b5b10d5ae26b26b2115c833e
treeadbccc218d18d3473e39f121c97442f2f3a5ff67
parent84ddaeb2ae977f2fa5fa7529a08a0038bc733358
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>
drivers/scsi/xen-scsifront.c