Revert "vhost: wrap vhost_user_read_cb with vhost_user mutex"
This reverts commit 6973898164
.
This solution was incomplete, see the next patch which properly
fixes the deadlock issue.
Change-Id: Ib3cc609814276f1c48b05280379b8c2849ad831f
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/375909
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a99dd7751f
commit
3d8dbc69c1
@ -277,8 +277,6 @@ vhost_user_read_cb(int connfd, void *dat, int *remove)
|
||||
|
||||
ret = vhost_user_msg_handler(conn->vid, connfd);
|
||||
if (ret < 0) {
|
||||
pthread_mutex_lock(&vhost_user.mutex);
|
||||
|
||||
close(connfd);
|
||||
*remove = 1;
|
||||
vhost_destroy_device(conn->vid);
|
||||
@ -293,8 +291,6 @@ vhost_user_read_cb(int connfd, void *dat, int *remove)
|
||||
create_unix_socket(vsocket);
|
||||
vhost_user_start_client(vsocket);
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&vhost_user.mutex);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user