Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2952773imm; Thu, 24 May 2018 19:47:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZppLgUVGUk3eHiIGOacbIY3TqrQMYiBvPsu6MR10xA5bnD+FArONvmdspu/8nehwCrdIZLs X-Received: by 2002:a17:902:9b8a:: with SMTP id y10-v6mr653401plp.124.1527216433179; Thu, 24 May 2018 19:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216433; cv=none; d=google.com; s=arc-20160816; b=o6G+qfTMETj6UynZ16pg7w+NcsYxyqpCCFG/bTDd9ESQ/hBPb2GESw50d2kxuRidF1 6A24I46Wd9d/REPOr6+Tkn5uEBSSirVRI5+dIWXrlFMqdhyNXrKTwfTBa6ldQiLQGMPm 2JY55Ft3ARQL4croFbkXCGPVcgEE3LwW+bu8o9X8v+NY8h3S45B6dhAPCavvY7WGiQ8M 5Dx05FOBLqNgyGX52tSTv4MX0fuhpgY89KyydYfh9+YcO/cl6royXwFm4A9teoM5da4R KyXiYynvbTmSnPvhkI+7k6RyZU2FwRqEVYvr/vtIueaDMQRdJRlE1y5oiuF2ra03HaYM aKlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=Fed5oPUN3ju4ragsQZEwD5bQ6M1L9pA6BLcX+1rEF/A=; b=wajPiFKxbWCkcgW0XfqMnf7GV5UNFCnPs0ElbQx9po7WRDkSlMk1j6zAYLxIWgUK3m rwkygGbdbxqjmdQr/XYnN7FAxAK1QX+rwStgjq3X64a8NKRRr7jz/WGL19STtZ8B1tnm 70qx+1d8h3rQBjO91KMRPW9Lb0NgjclnKaOrOap+Smcw2h0yZp5y4wt1JgLbd1rcCWgO FJt7LVB4zpuJrUUl1a2QT7yxoK7JOt6kdn/wkOub8YMhAu9989YZ9GvkLg/Hud98kpN5 qdf5MNH3WP+WDqKIvaegHLN6GkAJYUfsZxpLTEe+AlQ91MhKI+Fnkkb1qu7Ke+0VyAu/ c1Xw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7-v6si17764079pgc.14.2018.05.24.19.46.58; Thu, 24 May 2018 19:47:13 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935741AbeEXWhH (ORCPT + 99 others); Thu, 24 May 2018 18:37:07 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39448 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755191AbeEXWhG (ORCPT ); Thu, 24 May 2018 18:37:06 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4OMYf38114670 for ; Thu, 24 May 2018 18:37:05 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j64tukcn4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 24 May 2018 18:37:05 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 May 2018 18:37:04 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 24 May 2018 18:37:00 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4OMaxUT19726822; Thu, 24 May 2018 22:36:59 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 035A5B2066; Thu, 24 May 2018 19:38:47 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D820FB2067; Thu, 24 May 2018 19:38:46 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 24 May 2018 19:38:46 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 4086316C1971; Thu, 24 May 2018 15:38:39 -0700 (PDT) Date: Thu, 24 May 2018 15:38:39 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Joel Fernandes , linux-kernel@vger.kernel.org, "Joel Fernandes (Google)" , Peter Zilstra , Ingo Molnar , Boqun Feng , byungchul.park@lge.com, kernel-team@android.com, Josh Triplett , Lai Jiangshan , Mathieu Desnoyers Subject: Re: [PATCH 1/4] rcu: Speed up calling of RCU tasks callbacks Reply-To: paulmck@linux.vnet.ibm.com References: <20180523063815.198302-1-joel@joelfernandes.org> <20180523063815.198302-2-joel@joelfernandes.org> <20180523155734.GK3803@linux.vnet.ibm.com> <20180523124531.7b0e972a@gandalf.local.home> <20180523170303.GR3803@linux.vnet.ibm.com> <20180523151337.469bba34@gandalf.local.home> <20180523200458.GD3803@linux.vnet.ibm.com> <20180524174752.0928d562@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524174752.0928d562@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18052422-0056-0000-0000-00000454A45E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009065; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000261; SDB=6.01036001; UDB=6.00529949; IPR=6.00815130; MB=3.00021234; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-24 22:37:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052422-0057-0000-0000-00000898C1D6 Message-Id: <20180524223839.GU3803@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-24_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805240255 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 05:47:52PM -0400, Steven Rostedt wrote: > On Wed, 23 May 2018 13:04:58 -0700 > "Paul E. McKenney" wrote: > > > Looks plausible to me! > > > > BTW looking at the code: > > > /* Invoke the callbacks. */ > > while (list) { > > next = list->next; > > local_bh_disable(); > > list->func(list); > > local_bh_enable(); > > list = next; > > cond_resched(); > > } > > schedule_timeout_uninterruptible(HZ/10); > > What's the purpose of this final sleep? To avoid any possibility of rcu_tasks_kthread() getting into a tight loop. Thanx, Paul