Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp757411imm; Wed, 10 Oct 2018 03:58:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60rCNaB9eCV6ZVTzsPQcpUA9qVOXg/HjG44JdBPbZxpIiL1+iLsaDhf1DDsUQ4L2+BxLZpi X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr32175008plt.41.1539169084765; Wed, 10 Oct 2018 03:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539169084; cv=none; d=google.com; s=arc-20160816; b=O1Pr1lvNwdAjHPrqLwtqzqaQhqSHMecqalHV2S0x6wOucWT0AdSEnNPiaA9Wl0QfiO yjlGDGrUW24p3/xBzWlsHaH3gCFk4jrLtm0HopF88Cpzd80mGGzvO3d4iJzYzE1VPCLk Tl7mYf3i0bB5Mv5mAfsoYlWXQgrarcyD39h9GSmZ4iJXzaAui73fDrr2MKSgkY0eS/IS Auq2u3XuHhhR/o4K4PWKhdC6CtIsauGTHDkEDEtfjY27mVv+em1Xw1V0CbUBxE0el8+W mC/D9dXp1l8VH/2H4DZepEZ+Od6kXZRtHoHzqmzzvUzr8LPIBsiwxyvGw9o19vSfh6kv qGmw== 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:dkim-signature; bh=63oqnFkd/F82AU79+z6Cbi920zPcIqocGOCjN9vvNc4=; b=etwX+Mg6zanG5e0xzXl0y1Blhne6rFD4IYxzKvAXUHfBp8ECotkjcO19vIxzLVxzZj kqFamuUVa7zvpsChwz2PlnA+59P79RRJr8PsXVwtQPUahdyBiw6bD+TV4ZO3ep+T5Ygw HpQkhFNrzQyC5ubuBGzFjW5tLsF1haKtvtOvEmBp9zz2Nqqs6uVygxqfiH4PWgOydJyr /ev3yQaSh3eJ1WglXvHIKgMiDeBYIt4e5fhWfOq9L8IxDZ7hKM+HlPH+kDic3jhVC6Yr nElXScPwnJX2XM2nDC+Bk8b7RjG4EeG2TUGMYHa3cR6qFTC7E1XtcWWyHxI4ybUlfUhC A/gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dLqN7+vk; 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 l1-v6si25851170plg.285.2018.10.10.03.57.48; Wed, 10 Oct 2018 03:58:04 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dLqN7+vk; 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 S1726647AbeJJSTD (ORCPT + 99 others); Wed, 10 Oct 2018 14:19:03 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59784 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJSTD (ORCPT ); Wed, 10 Oct 2018 14:19:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=63oqnFkd/F82AU79+z6Cbi920zPcIqocGOCjN9vvNc4=; b=dLqN7+vkdknSBIvASrNv5pEtG fsF2Mdg6ZIp9dgoRrKJJn++2QK/Hii9Sdfc/FH3WygBoloM/fzZYZifcj9kD0I208DcgT1+BuzHfr OZk3MqbskBwsxaoiluYCwqBTRL/Q1/Twj/MJ5rEmisL5qVbqQ0ghcg2mpjgR79CCzxiJIE/HgvRLD TPIkSKFXmMzGtlc8Tg8djq2JPCsOarEaCoqZOAlgCD3YHOMLKXRKgr1M/m7SxFspCdj04XFA1HAsk MhSHsIS/qZiSr5IikPpo7ILSi37SwuVUYOfekDLu5xsHF9zi/09udUMkHgqdTqJS66S0aqM0rMN/d f3T3+V/rw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gACAy-0004e2-5r; Wed, 10 Oct 2018 10:57:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DCEDE20298C11; Wed, 10 Oct 2018 12:57:10 +0200 (CEST) Date: Wed, 10 Oct 2018 12:57:10 +0200 From: Peter Zijlstra To: luca abeni 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: <20181010105710.GP5728@hirez.programming.kicks-ass.net> References: <20181009092434.26221-1-juri.lelli@redhat.com> <20181010123417.26c682ef@luca64> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181010123417.26c682ef@luca64> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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'. The mutex blocking thing doesn't require external interfaces etc..