--- src/rx/rx.c 2001/12/25 18:13:20 1.26 +++ src/rx/rx.c 2002/01/11 06:31:21 @@ -1035,7 +1035,6 @@ } else { call = rxi_NewCall(conn, i); - MUTEX_ENTER(&call->lock); break; } } @@ -1950,7 +1949,7 @@ /* Allocate a call structure, for the indicated channel of the * supplied connection. The mode and state of the call must be set by - * the caller. */ + * the caller. Returns the call with mutex locked. */ struct rx_call *rxi_NewCall(conn, channel) register struct rx_connection *conn; register int channel; @@ -2032,7 +2031,6 @@ the call number is valid from the last time this channel was used */ if (*call->callNumber == 0) *call->callNumber = 1; - MUTEX_EXIT(&call->lock); return call; } @@ -2558,7 +2556,6 @@ } if (!call) { call = rxi_NewCall(conn, channel); - MUTEX_ENTER(&call->lock); *call->callNumber = np->header.callNumber; call->state = RX_STATE_PRECALL; clock_GetTime(&call->queueTime);