Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp778999imm; Wed, 10 Oct 2018 04:17:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV625/zBKuCH9tNv/JCwOTuh0q8rQ7RF//CdstNf3oy+1PKv3H/gbNFvd9ed0MBNNZQbcE8J4 X-Received: by 2002:aa7:80cd:: with SMTP id a13-v6mr34015696pfn.86.1539170238683; Wed, 10 Oct 2018 04:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539170238; cv=none; d=google.com; s=arc-20160816; b=XoD4jnzFHlx+OAJAqUc67JwJNGwoRdAcrfIz6ru1pxP9tW5B3yH3sglOZBIB3MJRe4 wehuQ9wVk7L3TzCrijFmomzSldSuKFpAB91nCzj0VT6TYSKieqXXsIHHzrAKwE5yaC33 lH8DWX3Ski1Fo0wJyECSGOsSiiHTOAMb25hoyW/3gyMPPYqZWm30rw91KzAaJAkoaZMK EePbZGX5KMe77kVQz4DQgjLBpIyIvZ5BedTMK3wKp6U/XK/aFQx3nPpQ6hHvi8OPJWCf /gyp/b3EgFwxEU2AVxBTZZRWJYHX3TXl6UEV7i/oC7DbE/WJapuN/qdvAuxmZwLyrh4q jafw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=sXMVLZedklYzKvOq8wCZV9rQCPUm7/s+IpeIv0tGgzs=; b=IAU6z3hgKKYpozl4S8nzg1JT6B1QYXMD0mfi03c35bMMieE562MtWA+rSpt3AXs8xq udpDQXBssmlzIW/Au+vNIlpJfSOTZWMYi93oIf/0lnRpIQvVKCHcFq3tXucMvndfOKSK ktNpPyV8cMqXx6SCdT8p0DQ1yqAuG5L2x0W6UIhFSfYYjnn5hs/mMAgIYuT+FDkhoXhO 3J2C632En1W+IlyWAqyq7apXahUaUMMrANraL5bELgmltPV1l5HNKQepNvh2tX6q0m8N PMoGcavIEeV/uRov28Qvfa/VghGsOCGIhKM3qr207yJi+QxrhJeGjl4dVi3UPacqIV21 n2SA== 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 74-v6si19892246pge.31.2018.10.10.04.17.02; Wed, 10 Oct 2018 04:17:18 -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 S1726786AbeJJSiS (ORCPT + 99 others); Wed, 10 Oct 2018 14:38:18 -0400 Received: from ms01.santannapisa.it ([193.205.80.99]:52644 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbeJJSiR (ORCPT ); Wed, 10 Oct 2018 14:38:17 -0400 Received: from [10.30.3.207] (account l.abeni@santannapisa.it HELO luca64) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 133570418; Wed, 10 Oct 2018 13:16:36 +0200 Date: Wed, 10 Oct 2018 13:16:29 +0200 From: luca abeni To: Peter Zijlstra Cc: Juri Lelli , mingo@redhat.com, rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, alessio.balsini@gmail.com, bristot@redhat.com, will.deacon@arm.com, andrea.parri@amarulasolutions.com, dietmar.eggemann@arm.com, patrick.bellasi@arm.com, henrik@austad.us, linux-rt-users@vger.kernel.org Subject: Re: [RFD/RFC PATCH 0/8] Towards implementing proxy execution Message-ID: <20181010131629.6623ddb4@luca64> In-Reply-To: <20181010105710.GP5728@hirez.programming.kicks-ass.net> References: <20181009092434.26221-1-juri.lelli@redhat.com> <20181010123417.26c682ef@luca64> <20181010105710.GP5728@hirez.programming.kicks-ass.net> Organization: Scuola Superiore S. Anna X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Oct 2018 12:57:10 +0200 Peter Zijlstra wrote: > On Wed, Oct 10, 2018 at 12:34:17PM +0200, luca abeni wrote: > > So, I would propose to make the proxy() function of patch more > > generic, and not strictly bound to mutexes. Maybe a task structure > > can contain a list of tasks for which the task can act as a proxy, > > and we can have a function like "I want to act as a proxy for task > > T" to be invoked when a task blocks? > > Certainly possible, but that's something I'd prefer to look at after > it all 'works'. Of course :) I was mentioning this idea because maybe it can have some impact on the design. BTW, here is another "interesting" issue I had in the past with changes like this one: how do we check if the patchset works as expected? "No crashes" is surely a requirement, but I think we also need some kind of testcase that fails if the inheritance mechanism is not working properly, and is successful if the inheritance works. Maybe we can develop some testcase based on rt-app (if noone has such a testcase already) Thanks, Luca > The mutex blocking thing doesn't require external > interfaces etc..