[PATCH 1/8] Use fast inc for service statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jan Friesse <jfriesse@xxxxxxxxxx>

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
Reviewed-by: Steven Dake <sdake@xxxxxxxxxx>
---
 exec/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/main.c b/exec/main.c
index 54a7bd0..952c7c7 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -682,7 +682,7 @@ static void deliver_fn (
 		return;
 	}
 
-	icmap_inc(service_stats_rx[service][fn_id]);
+	icmap_fast_inc(service_stats_rx[service][fn_id]);
 
 	if (endian_conversion_required) {
 		assert(corosync_service[service]->exec_engine[fn_id].exec_endian_convert_fn != NULL);
@@ -713,7 +713,7 @@ int main_mcast (
 	fn_id = req->id & 0xffff;
 
 	if (corosync_service[service]) {
-		icmap_inc(service_stats_tx[service][fn_id]);
+		icmap_fast_inc(service_stats_tx[service][fn_id]);
 	}
 
 	return (totempg_groups_mcast_joined (corosync_group_handle, iovec, iov_len, guarantee));
-- 
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux