]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit25176ed670121e1e0aae5c8161713c332b786538
treef022df5bce75f72994d59b43ff64d9a114fc5261
parent40112ae7504745799e75ef418057f0d2cb745050
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