Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp644659ybl; Fri, 9 Aug 2019 11:23:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrH9kfrLPqk+km1PgG9jPD771X4TV2hkQWISm1+FcAtEK2GnzeBTKaTEARFF4Sv8WFZKlG X-Received: by 2002:a62:3347:: with SMTP id z68mr23422946pfz.174.1565375030222; Fri, 09 Aug 2019 11:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565375030; cv=none; d=google.com; s=arc-20160816; b=v/590uRVgVTgu9BU+go8sTOl3TMC4dVZ1ikftqLyWinjF4BYFW7/6LONNVL4sD1nEk 3tYysPSHkGSO3rGLg2iMeN2MJ9I7lUF/P3F1lRFOvQIDqHdSkSt/Yj3WKU4y4MD6Al4D ZQkQq9bRu/uOGmTog2avmAQpRB70NO87WaSdKzclFPez7zuE+YaNrzQL7ZtlP4JzeKFP 7uKnGMPGFzleTTvW+ZgAuTCCCJD0VBAaNPPEVPuvV1hmBVpI2e0gVb7IyEzXtI38vCvG 77i4NZz94Lk5s8EJZwMLpzMkj6r1IOROmhLPSHha+bjFo+OQB3AEcXofzJErOEK/Z8Tz C48Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lE1oXpy3zayD3Ygw9JJ75yJfGHobWsrtPPUcmu98IfA=; b=tKKcnA1PSbdGNTFwy8SbpWmPPFbxMrtU/qWkL2pTi0z/ecSTG8T9XYnerf2dKfCzC6 daoXT6NAhTk7/txQ3F9up8VUD7YuDYAL78Ars5J3b2gzxkrOpsdBIEbWvllpcgXTHsxv KhdhXPFZWTVKTZujiOni1/JFMa68FrXpfLOpr9jH8kFlktMqCTZp7gg/LEPwZfIhDqYG 4dbrizZQcIqmLDQd7gSLwDEoHO2y9VoM3puOAl9fu6vDuem0kFdTWBXVq9s4w6UCJfup HthqlqmcFVj89LmS7f1vpJRQzPHKqjCSlef+0g/q7/pUygCps4jnmOVgvW2YMFMXH/gv RxmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si21766891pgp.299.2019.08.09.11.23.34; Fri, 09 Aug 2019 11:23:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407511AbfHISW0 (ORCPT + 99 others); Fri, 9 Aug 2019 14:22:26 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:40578 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfHISW0 (ORCPT ); Fri, 9 Aug 2019 14:22:26 -0400 Received: from 96-95-199-68-static.hfc.comcastbusiness.net ([96.95.199.68] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hw9Wv-0004GP-Ca; Fri, 09 Aug 2019 18:22:21 +0000 Date: Fri, 9 Aug 2019 20:22:17 +0200 From: Christian Brauner To: Greg Kroah-Hartman Cc: Hridya Valsaraju , Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Todd Kjos , Martijn Coenen , Joel Fernandes , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v3 1/2] binder: Add default binder devices through binderfs when configured Message-ID: <20190809182216.5xzx6tss6fh42mso@wittgenstein> References: <20190808222727.132744-1-hridya@google.com> <20190808222727.132744-2-hridya@google.com> <20190809145016.GB16262@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190809145016.GB16262@kroah.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 09, 2019 at 04:50:16PM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 08, 2019 at 03:27:25PM -0700, Hridya Valsaraju wrote: > > Currently, since each binderfs instance needs its own > > private binder devices, every time a binderfs instance is > > mounted, all the default binder devices need to be created > > via the BINDER_CTL_ADD IOCTL. > > Wasn't that a design goal of binderfs? Sure, but if you solely rely binderfs to be used to provide binder devices having them pre-created on each mount makes quite some sense, imho. > > > This patch aims to > > add a solution to automatically create the default binder > > devices for each binderfs instance that gets mounted. > > To achieve this goal, when CONFIG_ANDROID_BINDERFS is set, > > the default binder devices specified by CONFIG_ANDROID_BINDER_DEVICES > > are created in each binderfs instance instead of global devices > > being created by the binder driver. > > This is going to change how things work today, what is going to break > because of this change? > > I don't object to this, except for the worry of changing the default > behavior. This is something that Hridya and Todd can speak better to given that they suggested this change. :) From my perspective, binderfs binder devices and the regular binder driver are mostly used mutually exclusive in practice atm so that this change has little chance of breaking anyone. Now I really need to go back to vacation time - which I suck at apparently. :) Christian