Commit 3d8dbc69 authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Jim Harris
Browse files

Revert "vhost: wrap vhost_user_read_cb with vhost_user mutex"



This reverts commit 69738981.
This solution was incomplete, see the next patch which properly
fixes the deadlock issue.

Change-Id: Ib3cc609814276f1c48b05280379b8c2849ad831f
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/375909


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarPawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent a99dd775
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);
	}
}