Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752229AbbFXKql (ORCPT ); Wed, 24 Jun 2015 06:46:41 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:46568 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752163AbbFXKqj (ORCPT ); Wed, 24 Jun 2015 06:46:39 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Ingo Molnar Cc: Linus Torvalds , Andy Lutomirski , "linux-kernel\@vger.kernel.org" , David Herrmann , Djalal Harouni , Greg KH , Havoc Pennington , One Thousand Gnomes , Tom Gundersen , Daniel Mack References: <20150624080502.GA23842@gmail.com> Date: Wed, 24 Jun 2015 05:41:14 -0500 In-Reply-To: <20150624080502.GA23842@gmail.com> (Ingo Molnar's message of "Wed, 24 Jun 2015 10:05:02 +0200") Message-ID: <878ub9ie2d.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX18EPz+FmLelI6NH6UBStfIo2rInOt4wq9U= X-SA-Exim-Connect-IP: 67.3.205.90 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4987] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Ingo Molnar X-Spam-Relay-Country: X-Spam-Timing: total 565 ms - load_scoreonly_sql: 0.14 (0.0%), signal_user_changed: 4.1 (0.7%), b_tie_ro: 2.7 (0.5%), parse: 1.00 (0.2%), extract_message_metadata: 4.2 (0.7%), get_uri_detail_list: 2.2 (0.4%), tests_pri_-1000: 4.1 (0.7%), tests_pri_-950: 1.31 (0.2%), tests_pri_-900: 1.04 (0.2%), tests_pri_-400: 25 (4.4%), check_bayes: 24 (4.2%), b_tokenize: 7 (1.3%), b_tok_get_all: 8 (1.5%), b_comp_prob: 3.3 (0.6%), b_tok_touch_all: 2.5 (0.4%), b_finish: 0.62 (0.1%), tests_pri_0: 509 (90.0%), tests_pri_500: 5 (0.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: kdbus: to merge or not to merge? X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3069 Lines: 68 Ingo Molnar writes: > Not because I like it so much, but because I think the merge process should be > stripped of politics and emotion as much as possible: if an initial submission is > good and addresses all technical review properly, and if the cost to the core > kernel is low, then barring alternative, fully equivalent and superior patch > submissions, rejecting it does more harm than good. This is largely not what happened with kdbus. The initial submission was problematic. Many pieces of technical review were not addressed at the time a pull request was sent to Linus. Even now there are remaining outstanding technical items such as performance that have not been addressed. The cost to the rest of the core is potentially quite high as parts of kdbus double down on the worst mistakes in user interface of the kernel. Politics and emotion are involved because the discussions around kdbus have not been honest: - Lennart Poettering who has been hugely involved in the creation and the design of kdbus has not shown is face on lkml during the review, and he seems the only one who can actually answer many of the technical questions about kdbus. - Many times it was said some feature of kdbus is not important because using it was not required, and yet in practice using that feature is required in the common case. - Performance has been said to be a large benefit of kdbus and yet in the common case there will be a number of shared cache lines modifed for every message sent, for reference counts. At a quick glance it appears that communication with every system daemon will be serialized because they all have init as their parent process, so every reply will modify the reference count of init's struct pid. At this point I honestly do not know how to have a technical dialogue about the code in kdbus. Pointing out that bumping several reference counts per message is a bad idea, has gotten no where so far. Crazy things like using the processes command line (copied from userspace when a message is sent) for message authentication is still present in the code. I don't think any of these things are particularly subtle, hard to understand, or hard to fix yet months after they have been pointed out the code persists. For subtle issues who knows. Every review I have seen seems to get to a couple of simple things, point them out, and then stops. I am actually very strongly surprised at how many of these little issues remain in the code. There were enough changes added to the kdbus tree to fix small issues since the last merge window I would have thought I would have had to looked a little harder for problems. So whatever else the case may be I think the current kdbus code base is a long way from being ready to be merged. Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/