vhost-scsi: remove incorrect memory barrier
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 08:56:08 +0000 (10:56 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 12 May 2019 17:11:35 +0000 (13:11 -0400)
commit889e31e73a738183a402cf4dbca991dce2abce96
tree3299686e7c6a28be19a8a39b70e888e40dc8fe55
parentd63031bb0fc0314541340f08a0c35c40216ca72a
vhost-scsi: remove incorrect memory barrier

At this point, vs_tpg is not public at all; tv_tpg_vhost_count
is accessed under tpg->tv_tpg_mutex; tpg->vhost_scsi is
accessed under vhost_scsi_mutex.  Therefor there are no atomic
operations involved at all here, just remove the barrier.

Reported-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/scsi.c