Re: bluetooth lockdep trace. (.25rc5-git4)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <davej@...>
Cc: <netdev@...>, <hidave.darkstar@...>
Date: Friday, March 28, 2008 - 9:20 pm

From: Dave Jones <davej@codemonkey.org.uk>
Date: Thu, 27 Mar 2008 12:21:56 -0400


rfcomm connect locks the socket, then does rfcomm_dlc_open which in
turn can do a l2cap_sock_bind on a seperate second socket which in
turn locks that second socket.

Both of these sockets are AF_BLUETOOTH family, so lockdep thinks there
is a locking conflict, even though what is happening here is perfectly
fine since the two sockets are totally different AF_BLUETOOTH
sub-types.

Bluetooth will need to use sock_lock_init_class_and_name() and
lock sub-classes per AF_BLUETOOTH socket sub-type.

David, could you or someone else work on this?

Thanks!

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bluetooth lockdep trace. (.25rc5-git4), Dave Jones, (Thu Mar 27, 12:21 pm)
Re: bluetooth lockdep trace. (.25rc5-git4), David Miller, (Fri Mar 28, 9:20 pm)
Re: bluetooth lockdep trace. (.25rc5-git4), Dave Young, (Sat Mar 29, 8:45 am)
Re: bluetooth lockdep trace. (.25rc5-git4), David Miller, (Mon Mar 31, 10:28 pm)