aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/vhost/tcm_vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c
index 6cda137bb208..c127731b4230 100644
--- a/drivers/vhost/tcm_vhost.c
+++ b/drivers/vhost/tcm_vhost.c
@@ -874,6 +874,7 @@ static int vhost_scsi_set_endpoint(
874 /* Flushing the vhost_work acts as synchronize_rcu */ 874 /* Flushing the vhost_work acts as synchronize_rcu */
875 mutex_lock(&vq->mutex); 875 mutex_lock(&vq->mutex);
876 rcu_assign_pointer(vq->private_data, vs_tpg); 876 rcu_assign_pointer(vq->private_data, vs_tpg);
877 vhost_init_used(vq);
877 mutex_unlock(&vq->mutex); 878 mutex_unlock(&vq->mutex);
878 } 879 }
879 ret = 0; 880 ret = 0;