From c4561b6fd90c52667eebec9eecf974b4c0786382 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Thu, 8 Jan 2015 09:43:50 +0530 Subject: rpc: initialise transport's list on creation Initialising the transport's list, meant to hold clients connected to it, on the first connection event is prone to race, especially with the introduction of multi-threaded event layer. BUG: 1181203 Change-Id: I6a20686a2012c1f49a279cc9cd55a03b8c7615fc Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/9413 Tested-by: Gluster Build System Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- xlators/protocol/server/src/server.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xlators/protocol/server/src') diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 0dfe19a16b4..4cd2353f1b0 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -495,7 +495,6 @@ server_rpc_notify (rpcsvc_t *rpc, void *xl, rpcsvc_event_t event, trans->protocol_private = client->conn; */ - INIT_LIST_HEAD (&trans->list); pthread_mutex_lock (&conf->mutex); { -- cgit