Commit b3d0dfe5 authored by Matt Ezell's avatar Matt Ezell Committed by Greg Kroah-Hartman

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: default avatarMatt Ezell <ezellma@ornl.gov>
Reviewed-on: http://review.whamcloud.com/9096
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4577Reviewed-by: default avatarJames Nunez <james.a.nunez@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarIsaac Huang <he.huang@intel.com>
Reviewed-by: default avatarLiang Zhen <liang.zhen@intel.com>
Signed-off-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b291b9a
...@@ -338,7 +338,7 @@ lnet_counters_get(lnet_counters_t *counters) ...@@ -338,7 +338,7 @@ lnet_counters_get(lnet_counters_t *counters)
counters->send_count += ctr->send_count; counters->send_count += ctr->send_count;
counters->recv_count += ctr->recv_count; counters->recv_count += ctr->recv_count;
counters->route_count += ctr->route_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->send_length += ctr->send_length;
counters->recv_length += ctr->recv_length; counters->recv_length += ctr->recv_length;
counters->route_length += ctr->route_length; counters->route_length += ctr->route_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment