aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Lin <mlin@kernel.org>2015-11-30 14:15:52 -0800
committerMing Lin <mlin@kernel.org>2015-11-30 14:15:52 -0800
commit966daee7f363d6b95a4392170b389726d8e58e76 (patch)
tree709248ae6c59120a1bf9cbdddbf3fda45c122937
parent74419dfe7cd81abfabe1f9e734f0f10a46b2db4c (diff)
downloadlinux-vhost-nvme.0-ext.tar.gz
google ext fixvhost-nvme.0-ext
-rw-r--r--drivers/nvme/target/vhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/vhost.c b/drivers/nvme/target/vhost.c
index f7fdb237a5ac80..a3df032834feac 100644
--- a/drivers/nvme/target/vhost.c
+++ b/drivers/nvme/target/vhost.c
@@ -539,12 +539,12 @@ static void nvmet_vhost_process_sq(struct nvmet_vhost_sq *sq)
}
iod->req.execute(&iod->req);
mutex_lock(&sq->lock);
+ nvmet_vhost_update_sq_eventidx(sq);
+ nvmet_vhost_update_sq_tail(sq);
}
unlock:
sq->scheduled = 0;
- nvmet_vhost_update_sq_eventidx(sq);
- nvmet_vhost_update_sq_tail(sq);
mutex_unlock(&sq->lock);
return;