]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: fix statistics counting issues
authorCorey Minyard <cminyard@mvista.com>
Tue, 21 Apr 2009 19:24:04 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 20:41:48 +0000 (13:41 -0700)
commitb6b7f3269389c8ddfc8e1c86bc276b66f927ade7
treef022df5bce75f72994d59b43ff64d9a114fc5261
parent1d98dc25168fa6e4fac925db4981c3cc60e37bde
ipmi: fix statistics counting issues

Bela Lubkin noticed that the statistics for send IPMB and LAN commands
in the IPMI driver could be incremented even if an error occurred.  Move
the increments to the proper place to avoid this.

Also add some statistics for retransmissions that failed, and some little
helper functions to neaten up the code a little.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Bela Lubkin <blubkin@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_msghandler.c