Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp313560ybm; Tue, 26 May 2020 17:57:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1wiB1MnUefVsN0KsLwSOtP5nM6yYbo58d7rJ+etkGnrynGJyqc1MrFlTPGmuJZGRDCHbV X-Received: by 2002:a17:906:938a:: with SMTP id l10mr3402376ejx.186.1590541071532; Tue, 26 May 2020 17:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590541071; cv=none; d=google.com; s=arc-20160816; b=Qn/dd6kj0mbCww5O4jKDT5/JGUO7vjm9yLU63H8UgcLyW0b9NKpwlUSMi9oMgbqty1 AzXMBX9ClMp6AK5TA2+NQJkzt5Ftlck1iGKSxThmy2JQRx6Kx3jYj6J1xu5ZadVmUr4w kFP+naSJ/QJCWJno6nmoigRLO90c2WX+FBEhsnW3nRtFpNScseKdr/xgi2Or5znlIzmf VVyqjIlqRF3jVACIB3ZwoVOwtIkrPM8bI8jUt+JyEsJJ0w6fMh4vN5JHwKa8goZu6pGi Xziiv0MJ4RzxhJX2Zpgl/PgarlpDsrYca+qfm8FusDaOOI4NF6OP9b5/Si3Q9XJKvz68 ftpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8nz3CDdcS0xjg02CzjJ/lD/bQypLpbpXtrEAGZZGJUk=; b=JKm03uskGj7b4BoZN1M5oo7heUPXhAMJufBxhGI6ppQbAzcjcSbo16S24EXuNoeVmy IlynrBQ7CRdpBgLzrxbm/3+VY3E6mgyAut7zBcChopTcPLcPpfrWQS+n/5y+QvkMMJUI EPC+GoEIkJwx0+H+bYcIoFHmT2h+F/zo6M687YZ/ibqn1eI0JkubbcqdHamZ2eOKjurM km+gszFLEZrAHXpPTe8uC6w9488rdo/FUFQ772sYoLfqvyBu3zLY6VrQ9G3tX7ni1TJ9 Oz8wQ+lfPBNZWSJmtg6loSAb0SKvhjHrKgcqMz3JZHep2NDbRHrrvoqKXTzxMUzgXQph 2XzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bw++BqBU; 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 la14si870435ejb.277.2020.05.26.17.57.29; Tue, 26 May 2020 17:57:51 -0700 (PDT) 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=bw++BqBU; 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 S2390569AbgEZV17 (ORCPT + 99 others); Tue, 26 May 2020 17:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390398AbgEZV16 (ORCPT ); Tue, 26 May 2020 17:27:58 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B99EDC061A0F for ; Tue, 26 May 2020 14:27:58 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id f18so5541671qkh.1 for ; Tue, 26 May 2020 14:27:58 -0700 (PDT) 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=8nz3CDdcS0xjg02CzjJ/lD/bQypLpbpXtrEAGZZGJUk=; b=bw++BqBUqQLwetAA+/ZijHCPOEGMEeXrj+Qs81iqTH2f8gn3pTZQ68PSv7k6Kt+20V hUHG7KXbyZ0Tnp8Z6P6JlBw6WYpSwvwlHcWA8RPpKumqh0HJ7Qm7z9vUu61SVsibaaU8 Pp5/SndwTBno2mTJzp2xXXhGCRk3aomYP0b5o= 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=8nz3CDdcS0xjg02CzjJ/lD/bQypLpbpXtrEAGZZGJUk=; b=jgGx+ollFBxCguYeAEkH90M1m2nRwfCOl8A90GHOV0274F65UnR3d8FbGH6q8nyxsl RQ3n+94L6aWHI/EDqKFXqhZDV4MqruG3/D1P15s5jo5TO3WFKPkByBUIp6JIehjeIu16 JBpw8/tdax32tThNgzCHdEuymEziLYh19HO6nLRI0jMv88imksJDzDqO5ori52BXeuYV fyJa33px+KorNMoTXyGIf33P5iJNudRvvPQJP9NV9+BJyQF9JQhxurLTEoPNIUjsgpoA Gujc7CbeOHnEzqM+tXU7CFhGWc3h1+IKiY1U5PERBZtqJtYDOe7A/vUYui8aO5tZFo7/ y42A== X-Gm-Message-State: AOAM530lw7JZZYVvA+XMgsCMzI6vsOD9+mo2b4J61BabXi/El3hE9HgT j1zXWaObBl7St1/iN3ZuMFHl7A== X-Received: by 2002:a37:a111:: with SMTP id k17mr897818qke.376.1590528477822; Tue, 26 May 2020 14:27:57 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id o6sm802514qtd.59.2020.05.26.14.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 14:27:57 -0700 (PDT) Date: Tue, 26 May 2020 17:27:56 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: Frederic Weisbecker , LKML , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Josh Triplett Subject: Re: [PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints Message-ID: <20200526212756.GF76276@google.com> References: <20200513164714.22557-1-frederic@kernel.org> <20200513164714.22557-2-frederic@kernel.org> <20200520122949.GB16672@google.com> <20200522175739.GM2869@paulmck-ThinkPad-P72> <20200526152137.GB76276@google.com> <20200526162946.GK2869@paulmck-ThinkPad-P72> <20200526201840.GC76276@google.com> <20200526210947.GP2869@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526210947.GP2869@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 02:09:47PM -0700, Paul E. McKenney wrote: [...] > > > > BTW, I'm really itching to give it a try to make the scheduler more deadlock > > > > resilient (that is, if the scheduler wake up path detects a deadlock, then it > > > > defers the wake up using timers, or irq_work on its own instead of passing > > > > the burden of doing so to the callers). Thoughts? > > > > > > I have used similar approaches within RCU, but on the other hand the > > > scheduler often has tighter latency constraints than RCU does. So I > > > think that is a better question for the scheduler maintainers than it > > > is for me. ;-) > > > > Ok, it definitely keeps coming up in my radar first with the > > rcu_read_unlock_special() stuff, and now the nocb ;-). Perhaps it could also > > be good for a conference discussion! > > Again, please understand that RCU has way looser latency constraints > than the scheduler does. Adding half a jiffy to wakeup latency might > not go over well, especially in the real-time application area. Yeah, agreed that the "deadlock detection" code should be pretty light weight if/when it is written. > But what did the scheduler maintainers say about this idea? Last I remember when it came up during the rcu_read_unlock_special() deadlock discussions, there's no way to know for infra like RCU to know that it was invoked from the scheduler. The idea I am bringing up now (about the scheduler itself detecting a recursion) was never brought up (not yet) with the sched maintainers (at least not by me). thanks, - Joel