From: Jeffrey Altman Date: Sat, 2 Oct 2010 15:43:03 +0000 (-0400) Subject: Rx: Fix RXDEBUG_PACKET builds X-Git-Tag: upstream/1.8.0_pre1^2~4727 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fab6c9db2fb6418c1c4ebf32e441e0d2bdb9d817;p=packages%2Fo%2Fopenafs.git Rx: Fix RXDEBUG_PACKET builds Commit 37946ee1739aa22cb2f7330a37504d33a7733c9a unintentionally broke RXDEBUG_PACKET builds. Fix it. Change-Id: I833109b8e35f2f3487fe2865856c7f37cd31e0c2 Reviewed-on: http://gerrit.openafs.org/2882 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/rx.c b/src/rx/rx.c index aad100960..eaa180e5c 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -2348,9 +2348,10 @@ rxi_NewCall(struct rx_connection *conn, int channel) call->allNextp = rx_allCallsp; rx_allCallsp = call; call->call_id = + rx_atomic_inc_and_read(&rx_stats.nCallStructs); +#else /* RXDEBUG_PACKET */ + rx_atomic_inc(&rx_stats.nCallStructs); #endif /* RXDEBUG_PACKET */ - if (rx_stats_active) - rx_atomic_inc(&rx_stats.nCallStructs); MUTEX_EXIT(&rx_freeCallQueue_lock); MUTEX_INIT(&call->lock, "call lock", MUTEX_DEFAULT, NULL);