tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
authorAsias He <asias@redhat.com>
Fri, 15 Mar 2013 01:14:05 +0000 (09:14 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 18 Mar 2013 21:34:35 +0000 (14:34 -0700)
commit038e0af4a4fc4db9631aef39ab53e5d991b972ef
tree7ca8d79a0b44ee369d629486ced4063bfdaa366d
parent0fb889b83186e54c0cfa79516599f2267fb553fb
tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()

tv_tpg->tv_tpg_vhost_count should be protected by tv_tpg->tv_tpg_mutex.

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