Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1417038pxb; Fri, 20 Nov 2020 08:59:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2nk8G0fQMgn3cHqZjXDd1AqqXfx8yfsY1Wr2rvyICI7Wf6uGuKVYXdDczZBEZ0UTx4kLJ X-Received: by 2002:a17:906:1918:: with SMTP id a24mr10368840eje.432.1605891587072; Fri, 20 Nov 2020 08:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605891587; cv=none; d=google.com; s=arc-20160816; b=MGSAOiH/DM96rQ8RiLd68laWZUxu/c80u9pw9BsHQuh5KB3UyO25TYTJ+Eh9NNVXT9 M2qCjFJOVoraVU5pmS2z7IBtamCUxo7++hxLbWqOyzRTrrzbEzRIYgBUjleNARAHu+Ao S9C/3988W77bgl9S69IlPOp8XoOW+flIb2NDXKhLW7akqQAKnQBXw9KcMcgTPH4peJTo vDxu3fwfdL1PjKLXj+Gla6veSAPlPkvhN5YDMoxcHjieamZbU6uuDnhYgw7gXum/gf3L zw1iqzZAN64Cw1dEvtx1D1ox5NLu2BTLbA1VllJaNsbpvYKx6DUNJGBe9L9HpR1Xa7d+ BXzg== 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=fP9H0NfmnH39CvoMhVDgN4MIBYLW4dx4A1D7re6k5gk=; b=nJ97ZNJxfBDUv9KOPxJOUOVGEW9eSiGukBU6NCshAZtrX6PKDujRtOhe3r8oDefkpF bpLRcTyxdQVmekH9wjITwc//u8+TRq+AGstyXSSJdj4oFG7padhDtf06z4msrVfh0F7U Gab21QvODvLnk8sCA8kUfwt4rss3dr72Ph0y5A8tlrpnKDWqk+HrYYFZ75IxJXw/n+44 DjTdBcizcb5SVl0Y5Mu4mFAnirApXdQ2V2w2t5uIX2DkTPq9wQYtqjfxkblki8V/RgRQ DLdqHheiVuWulV9UAnhhQXTsXPWlMUCBtzxahpL9f3p1uD1Io3+HhIx6KZi8KLOGDHaj XZQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=A7nnsNFz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si2016979ejd.689.2020.11.20.08.59.23; Fri, 20 Nov 2020 08:59:47 -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=@joelfernandes.org header.s=google header.b=A7nnsNFz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730175AbgKTQz0 (ORCPT + 99 others); Fri, 20 Nov 2020 11:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729569AbgKTQz0 (ORCPT ); Fri, 20 Nov 2020 11:55:26 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754A4C0613CF for ; Fri, 20 Nov 2020 08:55:26 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id f15so4064334qto.13 for ; Fri, 20 Nov 2020 08:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fP9H0NfmnH39CvoMhVDgN4MIBYLW4dx4A1D7re6k5gk=; b=A7nnsNFzrs19WzwXPOcfgoQ5JHYBzmxO1EAo4F5bjJ8eWLbxaMFpV+Y6jHXGPB3hUW k9XxBfRkz+BbHIjQOg9kQ9ajar8VcjbCAeMjbth+mvLj3kZd2EXyfniXaV7BXdnOEJpW I2PlrcjSkpA/BJJ0h8FWQOwsGTauXI+Es3npw= 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=fP9H0NfmnH39CvoMhVDgN4MIBYLW4dx4A1D7re6k5gk=; b=RPdw/Tda4b0XM/i6Yr80nCT+bdeeUnYsOT62wFEkYFtpdmPk/Jr8X9kaITn8vwEY2H oJVI9O60m0BfGVOu4GpbQ1QAZunWK06umdmoalLEoXpS6WgFd4irK8/FK2tA7QybGFSI DH/pnj3XXPckBeWzGv4/vA2hufWgFzIVV+O0CwjaI2TmLF8cgZeRp5QFCp7LiXobPMlm cklq/6nTVQwl+UQfZ9pBAYmUTHrnvJXJcwgZPdoUpc8jPvagagqwCTlYtgMuCpA1h+Nr dkb+k3q1Ic1SjwCvFV4blh/7Ce3EKI391/GbSGSd6s0n3eGs2YXMV5h1IlUTYMD2IeTR +3jQ== X-Gm-Message-State: AOAM5329JCCJwCmqWTnRb+cvQYrOiWbI3MQHkF8BOWaSTVCaj1izqk19 1606ESLMOdA6MaWswoHKgnyVMw== X-Received: by 2002:ac8:44cf:: with SMTP id b15mr16057309qto.325.1605891323285; Fri, 20 Nov 2020 08:55:23 -0800 (PST) Received: from localhost ([2620:15c:6:411:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id v16sm2394875qka.72.2020.11.20.08.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 08:55:22 -0800 (PST) Date: Fri, 20 Nov 2020 11:55:22 -0500 From: Joel Fernandes To: "Singh, Balbir" 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: <20201120165522.GA1021337@google.com> References: <20201117232003.3580179-1-joel@joelfernandes.org> <20201117232003.3580179-2-joel@joelfernandes.org> <1489211d-594c-d244-0111-8bd8a27fb945@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489211d-594c-d244-0111-8bd8a27fb945@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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). thanks, - Joel > Balbir Singh