Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp298576ybl; Fri, 23 Aug 2019 00:44:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX+drvNBGZlkvCSL21E8AekM+5opQPqnFTikrRijCszNOe7mV6GUV0XKrPeCHq1SHhgh/G X-Received: by 2002:a17:90a:dac3:: with SMTP id g3mr3791195pjx.45.1566546297352; Fri, 23 Aug 2019 00:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566546297; cv=none; d=google.com; s=arc-20160816; b=jYBqhf+hduvoqkMaycbfQiMa2d/E8i21+7PxOAdWV0OSV/VyQaZtOKB2cunSGjOATB 9Vd+er56QaH9jVMMpzrA4/CzpBB04XIowwdk/BQpT9UOxISCpejKrq6O3+Ch8Pz+8Eid g7PSlenM8PziRypZS6Z0qMtiy1XHdZuxIKuP1e0cdOBcjbmzLX2MYuEOQRT85aDye6kL i/qfXvdGFAIDBZ+XcRi9CV27fD5qgT5b0xqWfwTEvr4sUdCUCQMMgyxbrdWQ18Q47zbH UAnCoBimQUFdXzM1IkSjUc1ZwRa9PyO+jjAorYVtEJ5Qg+7vIo4189PjBowwZz9gKs12 irHQ== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=Pxf5wczjr0s+kEs3G5TLTKI9iasZcXENf1A3OKul7Dg=; b=VXYH4bOhUduLLBoUd9L0O2HGwS3zr6B2pPe7XD08Wh63qEr6ZoU7zqnQAjOEymcun/ hjxi5cEBVS8go3pd4TIqpOi+wvJtJumMqds0Opy0Yvb7BTdtGMLt/M9z2H+KUVH5OvxJ NMoJw+AP6SMHqXGHuq929GTGA8WJW2dSZ+kBByLeNVrHSsjAJe7PPu/aJN6P+6upR/HP LjDyaBTHuZmAB3ldJqHa715OOoHFCUnaKjIVW+i1PYYwrNR+lcGTrwpJvlMHdtiv9Xmu JCyuVVq81gUcrRw31Z8OcyValy6Iate8rlRbx1reJkFFM8DUCCqspb/0lA434k9uFVSl UuSg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si1333120pgd.363.2019.08.23.00.44.42; Fri, 23 Aug 2019 00:44:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389154AbfHVTbW (ORCPT + 99 others); Thu, 22 Aug 2019 15:31:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfHVTbW (ORCPT ); Thu, 22 Aug 2019 15:31:22 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A3981308427C; Thu, 22 Aug 2019 19:31:21 +0000 (UTC) Received: from ovpn-117-150.phx2.redhat.com (ovpn-117-150.phx2.redhat.com [10.3.117.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 46A3B600CD; Thu, 22 Aug 2019 19:31:18 +0000 (UTC) Message-ID: Subject: Re: [PATCH RT v2 3/3] rcu: Disable use_softirq on PREEMPT_RT From: Scott Wood To: Joel Fernandes Cc: Sebastian Andrzej Siewior , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E . McKenney" , Thomas Gleixner , Peter Zijlstra , Juri Lelli , Clark Williams Date: Thu, 22 Aug 2019 14:31:17 -0500 In-Reply-To: <20190822135953.GB29841@google.com> References: <20190821231906.4224-1-swood@redhat.com> <20190821231906.4224-4-swood@redhat.com> <20190822135953.GB29841@google.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 22 Aug 2019 19:31:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-08-22 at 09:59 -0400, Joel Fernandes wrote: > On Wed, Aug 21, 2019 at 06:19:06PM -0500, Scott Wood wrote: > > I think the prohibition on use_softirq can be dropped once RT gets the > > latest RCU code, but the question of what use_softirq should default > > to on PREEMPT_RT remains. > > Independent of the question of what use_softirq should default to, could > we > test RT with latest RCU code now to check if the deadlock goes away? That > way, maybe we can find any issues in current RCU that cause scheduler > deadlocks in the situation you pointed. The reason I am asking is because > recently additional commits [1] try to prevent deadlock and it'd be nice > to > ensure that other conditions are not lingering (I don't think they are but > it'd be nice to be sure). > > I am happy to do such testing myself if you want, however what does it > take > to apply the RT patchset to the latest mainline? Is it an achievable feat? I did run such a test (cherry picking all RCU patches that aren't already in RT, plus your RFC patch to rcu_read_unlock_special, rather than applying RT to current mainline) with rcutorture plus a looping kernel build overnight, and didn't see any splats with or without use_softirq. -Scott