From b49b3898a5e06eb556140e62e6285d4c157c79cc Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Wed, 10 Oct 2018 17:01:08 -0700 Subject: [PATCH] lookup_and_alloc_client(): race condition There is unnecessary unlock/lock causing a race. remove it. Signed-off-by: Isaku Yamahata --- LibOS/shim/src/ipc/shim_ipc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/LibOS/shim/src/ipc/shim_ipc.c b/LibOS/shim/src/ipc/shim_ipc.c index 9594cabc..5faca8ab 100644 --- a/LibOS/shim/src/ipc/shim_ipc.c +++ b/LibOS/shim/src/ipc/shim_ipc.c @@ -203,9 +203,7 @@ lookup_and_alloc_client (IDTYPE vmid, const char * uri) unlock(ipc_info_lock); return p; } - unlock(ipc_info_lock); - lock(ipc_info_lock); p = __get_new_ipc_info(vmid, uri, len); if (p) { listp_add(p, head, hlist);