Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp96223pxu; Sun, 22 Nov 2020 00:58:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtAbFAAhO5WaMevYbKDh/F2DrX40KAgDJK/y9uJhOpKaT6qSQqaADYZdjeS597WVFpqAkj X-Received: by 2002:a17:906:268c:: with SMTP id t12mr38068393ejc.377.1606035515695; Sun, 22 Nov 2020 00:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606035515; cv=none; d=google.com; s=arc-20160816; b=ktwB7IfQeFSqSn7914s49kWtQxAs+dSarExOIrjY+HcRaUpB5t5TksewTqSxovtDPM Sz1Rkx9wU953acYqsrpffOP1Xj1HVZ3/tjQZSTPP0qMRNuDPB0eVaF/Z++axZqI0nqWk 22zhtKMkI3wnEhoAQg+bt2hD3bX+Ow64Qq2jaT+JFezzQZnoNC1fVkNDf5EUBp2amGTF uH/i22W4hNdiVCrL8V1J5r6+U+40B64hJfJOeFujs1DEvgzx0k8A9yC0BvuBodJ432yk Y09f3WAcFxMWYPxqeH/B3HGhV2+AUBk4uBk2ZkGQ53/T5d8hqtyFHHvFlKN/j3SXPH8Y 2jHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tuVn607FQC2Z7JxZDC4QieVMCILWTqSRSd3FAkHzFIQ=; b=p+ErhkoI4wXck30M/YrtY8IPSyYpCk4lGLvfu22u/ODlTQVBC+EObCmjTZWzzepDUM QRedTQqG1aFFzzUCuUF8ZhFpKs8xgBzthAETY8AHfucVwemaHfg+Dyyj2btPoUkAOniT diY8rINUb6JHn1e5/wfwQy4zdk70KDwDgMs10vVIw/+k6ifjPZ52MOIW213HfN85e0un LumDL7rOfPdndIzEHFaV6J3BpM0MddNN5hL0XNqSd7FsT9duE/t+6lo6qOLC+ALTzV/M zI1k2l3SRfCUodgC21TThtd7XTfQqnu9UC1XTNEhtrkwQ190Zqng/eyEAX6aTtK36CEU NmEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="J6fV/m9Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si4919987edy.62.2020.11.22.00.57.59; Sun, 22 Nov 2020 00:58:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="J6fV/m9Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727328AbgKVIwJ (ORCPT + 99 others); Sun, 22 Nov 2020 03:52:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727306AbgKVIwI (ORCPT ); Sun, 22 Nov 2020 03:52:08 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41D22C0613CF for ; Sun, 22 Nov 2020 00:52:08 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id t37so11303059pga.7 for ; Sun, 22 Nov 2020 00:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tuVn607FQC2Z7JxZDC4QieVMCILWTqSRSd3FAkHzFIQ=; b=J6fV/m9YDRZUBzYLxW/eRBYiaxabgyrliYLl+hkVoGnt3Uw+zway9pPyVFq5zgns1K 1+devwCP9lniC7Fo9lu6zmM89XQhC73fH6CUVFuXa14xpITxYUlpZToNTt1b+lHZ9yb+ 8XvmOuQ2nK9peMFhZsNd8IVdZFgXjsb654qGhwr1dmii9Ulsw+y330Y2qZj9dyYQSlcz gvCORl9kSIUrjZ78T0tFDq/dTO1ZThZ4I6ShsmRmY7vL3iiArXi3wA8lA0NucmGw40lR 3cx2G/jsOCfe6SPzYXb5cdAkjNYyb9K0J0q8tASStujMUv7A4Qb/fOXVrG9NS1x+eZZs s7gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tuVn607FQC2Z7JxZDC4QieVMCILWTqSRSd3FAkHzFIQ=; b=AvqL5GF866CRmtWOjzr8yppBK++UTWQVaFUogg+ddjffNLUw9Dxh/StxRRXVbOZX6s J8eBC3x4xN4v+1wStSIxwwUWFCv7B+RCFh7m1W/KctLQUfAPrT4ykY9iDlUepUcRcoAv hAxOjNz1mgPDw+PLlBAxikQrhaGHDpIb0EVC14G/6M9RPz8cfolE5RQ1fxdvQl5TRQAK NhXLvvRDl6/HASeLenk4czRR/lPOWg8IxoLkN5K7GLngHkGLQ/m7WU83XAhjvQACX7Ht zDcciNxazMY/sRWAHFkhzg7P/Qmykf8HajKOR5JLw9nI+BgV9H3CxId25fovkt84V2Ig 1C7w== X-Gm-Message-State: AOAM531b+a9t7DBxV0aZtyYlwviNJ1yxuVMoCHsVKTWG/I4AjUv35H+i BMsNASr1RF0ZDHElUkfe6qK7jFR41oiVFzAS6hk= X-Received: by 2002:a17:90b:3647:: with SMTP id nh7mr3750158pjb.114.1606035126999; Sun, 22 Nov 2020 00:52:06 -0800 (PST) Received: from localhost (61-68-227-232.tpgi.com.au. [61.68.227.232]) by smtp.gmail.com with ESMTPSA id a3sm8728821pfd.58.2020.11.22.00.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 00:52:03 -0800 (PST) Date: Sun, 22 Nov 2020 19:52:00 +1100 From: Balbir Singh To: Joel Fernandes Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, chris.hyser@oracle.com, Ben Segall , Josh Don , Hao Luo , Tom Lendacky , Aubrey Li , "Paul E. McKenney" , Tim Chen Subject: Re: [PATCH -tip 01/32] sched: Wrap rq::lock access Message-ID: <20201122085200.GA110669@balbir-desktop> References: <20201117232003.3580179-1-joel@joelfernandes.org> <20201117232003.3580179-2-joel@joelfernandes.org> <1489211d-594c-d244-0111-8bd8a27fb945@gmail.com> <20201120165522.GA1021337@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201120165522.GA1021337@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 11:55:22AM -0500, Joel Fernandes wrote: > On Fri, Nov 20, 2020 at 10:31:39AM +1100, Singh, Balbir wrote: > > On 18/11/20 10:19 am, Joel Fernandes (Google) wrote: > > > From: Peter Zijlstra > > > > > > In preparation of playing games with rq->lock, abstract the thing > > > using an accessor. > > > > > > > Could you clarify games? I presume the intention is to redefine the scope > > of the lock based on whether core sched is enabled or not? I presume patch > > 4/32 has the details. > > Your line wrapping broke, I fixed it. > Sorry, I've been using thunderbird from time to time and even though I set the options specified in the Documentation (email-clients), it's not working as expected. > That is in fact the game. By wrapping it, the nature of the locking is > dynamic based on whether core sched is enabled or not (both statically and > dynamically). > My point was that the word game does not do justice to the change, some details around how this abstractions helps based on the (re)definition of rq with coresched might help. Balbir Singh.