tcm_vhost: Send bad target to guest when cmd fails
authorAsias He <asias@redhat.com>
Wed, 10 Apr 2013 07:06:16 +0000 (15:06 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 Apr 2013 08:48:42 +0000 (01:48 -0700)
commit055f648c49d948de9452b0f1758869bbbd0097b8
tree683c374546db82f1413afeea5b1b4fe7cfff59b4
parent637ab21e284f4e9188acc2746695f7f6452b4a22
tcm_vhost: Send bad target to guest when cmd fails

Send bad target to guest in case:
1) we can not allocate the cmd
2) fail to submit the cmd

Signed-off-by: Asias He <asias@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c