Skip to content

Commit

Permalink
irda: iriap: Use seperate lockdep class for irias_objects->hb_spinlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jun 7, 2011
1 parent 3019de1 commit 79b3891
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/irda/iriap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 79b3891

Please sign in to comment.