Hi Andrei, On Sun, Feb 19, 2012 at 5:49 PM, Andrei Emeltchenko <andrei.emeltchenko.news@xxxxxxxxx> wrote: > Hi Ulisses, > > On Fri, Feb 17, 2012 at 11:22 PM, Ulisses Furquim > <ulisses@xxxxxxxxxxxxxx> wrote: >> Why don't you squash together patches 2, 3 and 4? Is there a reason? > > The price of squashing is zero and if there are no other comments I > can do it right away. > >> Only with patch 2 the change becomes incomplete and prone to errors. > > However I do not think that this makes much difference to the existing code. We're trying to improve things, right? If the current code is broken somehow is not an excuse for us to merge patches which we know are incomplete and will possibly break if someone is doing a bisect, for instance. >> With patch 3 you add some needed changes but then adds an imbalance of >> lock/release sock locks which is only solved in patch 4. Why? > > How does patch 4 solves locking? If I did not miss something it shall > not change anything. For instance, in patch 3 you replace l2cap_get_chan_by_scid() with __ l2cap_get_chan_by_scid() in l2cap_connect_rsp(). However, __ l2cap_get_chan_by_scid() doesn't lock_sock() as the other one did and only in patch 4 you add an explicit lock_sock() to l2cap_connect_rsp(). Got it? A commit should be self contained as much as possible so we keep the code bisectable. Regards, -- Ulisses Furquim ProFUSION embedded systems http://profusion.mobi Mobile: +55 19 9250 0942 Skype: ulissesffs -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html