]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d7c19f4fa66b5afea75da31e8a562f63e8d13f2
tree683c374546db82f1413afeea5b1b4fe7cfff59b4
parent11b1d5ae1f72003e317f2f47b4b4353d1def2520
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