Thread (25 messages) 25 messages, 4 authors, 2012-02-21

Re: [RFCv6 00/14] Bluetooth: Change socket lock to l2cap_chan lock

flat view

From: Ulisses Furquim <hidden>
Date: 2012-02-20 14:52:48

Hi,

On Mon, Feb 20, 2012 at 12:44 PM, Emeltchenko Andrei
[off-list ref] wrote:
Hi Marcel,

On Mon, Feb 20, 2012 at 03:29:33PM +0100, Marcel Holtmann wrote:
quoted
Hi Andrei,
quoted
Changing socket lock to L2CAP chan lock in L2CAP code. Needed for impl=
ementing
quoted
quoted
protocol above L2CAP without creating sockets.

Changes:
=A0 =A0 * RFCv6: Same code but patches 2,3 and 4 from RFCv5 are merged=
 together
quoted
quoted
=A0 =A0 following recommendations from review.
=A0 =A0 * RFCv5: Fixed locking bug in l2cap_data_channel, added locks =
in
quoted
quoted
=A0 =A0 l2cap_sock_shutdown function, fixed several styles issues.
=A0 =A0 * RFCv4: Better split patches so they looks more clear and obv=
ious,
quoted
quoted
=A0 =A0 taking coments about naming change and delete unused vars. See=
 diff change
quoted
quoted
=A0 =A0 from the previous version below:
=A0 =A0 * RFCv3: Split the big patch to several small (I believe logic=
al) chunks,
quoted
quoted
=A0 =A0 remove unneded locks from cleanup_listen, use the same argumen=
ts for
quoted
quoted
=A0 =A0 locked/unlocked socket error functions.
=A0 =A0 * RFCv2: Convert l2cap channel list back to mutex from RCU lis=
t.
quoted
so what is the general status of this patch series. Are there still
concerns or opens? Or should it be go for final review and be merged?
The code looks now good enough for final review.
Marcel, the code looks good for final review and merge. The only thing
concerns me is the change to chan->lock instead of sock lock seems to
be split too much. I mean that we have this change done in a series of
patches while it might be better to change everything at once. Not
sure if worrying about intermediate states here is something you care
or not, though, because I'm almost sure they'll be broken doing it in
small pieces.

And IMO it'd be good if Padovan could take a look at the patches
moving to chan->lock as well.

Regards,
--=20
Ulisses Furquim
ProFUSION embedded systems
http://profusion.mobi
Mobile: +55 19 9250 0942
Skype: ulissesffs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help