irda: iriap: Use seperate lockdep class for irias_objects->hb_spinlock
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2011 00:00:35 +0000 (17:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2011 00:00:35 +0000 (17:00 -0700)
The SEQ output functions grab the obj->attrib->hb_spinlock lock of
sub-objects found in the hash traversal.  These locks are in a different
realm than the one used for the irias_objects hash table itself.

So put the latter into it's own lockdep class.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/iriap.c

index 36477538cea8eba501f000253b433d673b8d579f..f876eed7d4aad3099869acad4670e102e1bf368e 100644 (file)
@@ -87,6 +87,8 @@ static inline void iriap_start_watchdog_timer(struct iriap_cb *self,
                         iriap_watchdog_timer_expired);
 }
 
+static struct lock_class_key irias_objects_key;
+
 /*
  * Function iriap_init (void)
  *
@@ -114,6 +116,9 @@ int __init iriap_init(void)
                return -ENOMEM;
        }
 
+       lockdep_set_class_and_name(&irias_objects->hb_spinlock, &irias_objects_key,
+                                  "irias_objects");
+
        /*
         *  Register some default services for IrLMP
         */