aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ezell <[email protected]>2014-04-27 13:06:30 -0400
committerGreg Kroah-Hartman <[email protected]>2014-04-27 10:21:38 -0700
commitb3d0dfe5abccf79dfe2f5c8cf46b26764b809976 (patch)
treefc2ef318d764b4213873707cf53d48b868f6ecd5
parent0b291b9a98460e5e2bc7e3c3f04dec269e1b28fe (diff)
staging/lustre/lnet: Dropped messages are not accounted correctly
LNET messages that are dropped are not accounted for correctly in /proc/sys/lnet/stats. What I assume to be a simple typo is causing drop_length to be double-counted and drop_count to never be incremented. Signed-off-by: Matt Ezell <[email protected]> Reviewed-on: http://review.whamcloud.com/9096 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4577 Reviewed-by: James Nunez <[email protected]> Reviewed-by: James Simmons <[email protected]> Reviewed-by: Isaac Huang <[email protected]> Reviewed-by: Liang Zhen <[email protected]> Signed-off-by: Oleg Drokin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/lustre/lnet/lnet/api-ni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/api-ni.c b/drivers/staging/lustre/lnet/lnet/api-ni.c
index 45c23194081b..3f3c341c1197 100644
--- a/drivers/staging/lustre/lnet/lnet/api-ni.c
+++ b/drivers/staging/lustre/lnet/lnet/api-ni.c
@@ -338,7 +338,7 @@ lnet_counters_get(lnet_counters_t *counters)
counters->send_count += ctr->send_count;
counters->recv_count += ctr->recv_count;
counters->route_count += ctr->route_count;
- counters->drop_length += ctr->drop_length;
+ counters->drop_count += ctr->drop_count;
counters->send_length += ctr->send_length;
counters->recv_length += ctr->recv_length;
counters->route_length += ctr->route_length;