mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
RX: Fix old rx_stats incrementors
A couple of places were still trying to increment rx_stats members by just ++'ing them. Update them to use rx_atomic_inc. Change-Id: I35f5b24a08952d308074851623b06580e4b2b93b Reviewed-on: http://gerrit.openafs.org/3263 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
354d21878e
commit
732a4c52d5
@ -304,9 +304,7 @@ MyPacketProc(struct rx_packet **ahandle, int asize)
|
||||
rxi_FreePacket(tp);
|
||||
tp = NULL;
|
||||
if (rx_stats_active) {
|
||||
MUTEX_ENTER(&rx_stats_mutex);
|
||||
rx_stats.noPacketBuffersOnRead++;
|
||||
MUTEX_EXIT(&rx_stats_mutex);
|
||||
rx_atomic_inc(&rx_stats.noPacketBuffersOnRead);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -317,9 +315,7 @@ MyPacketProc(struct rx_packet **ahandle, int asize)
|
||||
* end know we're losing.
|
||||
*/
|
||||
if (rx_stats_active) {
|
||||
MUTEX_ENTER(&rx_stats_mutex);
|
||||
rx_stats.bogusPacketOnRead++;
|
||||
MUTEX_EXIT(&rx_stats_mutex);
|
||||
rx_atomic_inc(&rx_stats.bogusPacketOnRead);
|
||||
}
|
||||
/* I DON"T LIKE THIS PRINTF -- PRINTFS MAKE THINGS VERY VERY SLOOWWW */
|
||||
dpf(("rx: packet dropped: bad ulen=%d\n", asize));
|
||||
|
Loading…
Reference in New Issue
Block a user