Explorar o código

[PATCH] ipmi: use refcount in message handler

This patch is rather large, but it really can't be done in smaller chunks
easily and I believe it is an important change.  This has been out and tested
for a while in the latest IPMI driver release.  There are no functional
changes, just changes as necessary to convert the locking over (and a few
minor style updates).

The IPMI driver uses read/write locks to ensure that things exist while they
are in use.  This is bad from a number of points of view.  This patch removes
the rwlocks and uses refcounts and RCU lists to manage what the locks did.

Signed-off-by: Corey Minyard <minyard@acm.org>
Cc: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Corey Minyard %!s(int64=19) %!d(string=hai) anos
pai
achega
393d2cc354
Modificáronse 2 ficheiros con 372 adicións e 344 borrados
  1. 371 340
      drivers/char/ipmi/ipmi_msghandler.c
  2. 1 4
      include/linux/ipmi.h

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 371 - 340
drivers/char/ipmi/ipmi_msghandler.c


+ 1 - 4
include/linux/ipmi.h

@@ -256,10 +256,7 @@ struct ipmi_recv_msg
 };
 
 /* Allocate and free the receive message. */
-static inline void ipmi_free_recv_msg(struct ipmi_recv_msg *msg)
-{
-	msg->done(msg);
-}
+void ipmi_free_recv_msg(struct ipmi_recv_msg *msg);
 
 struct ipmi_user_hndl
 {

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio