Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp931008ybl; Thu, 12 Dec 2019 07:09:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzBqze/Lto2F6r8dmknOLjlClypnKsNDWwirc9BDypqTW9ScdAOxbXpi62ZwOS0SpGW6MK5 X-Received: by 2002:a05:6830:194:: with SMTP id q20mr8921939ota.92.1576163352746; Thu, 12 Dec 2019 07:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576163352; cv=none; d=google.com; s=arc-20160816; b=E1jIFbIawol/euS2oDUzdrdOIn5OEPGkg5B9bfThtCHaVDBukHJbGleZ/4fwLEp9P4 mgwv1v8qBpw0ZtmQFg/qYBbzZk1CVCb+7NIPl/YXhYnQfXHv5dvah+I64ggqM4BUTVF0 5s51NFxd/457M2gBBcGJHboxl3kR7lcTwQUYSdlW6/rhlTi+94ExfUO8F7kPn0RLKSEM We/BIJBGDTvOB/xXEcBim/6QAN1BVkm7hHdzPyVr3WWtjjQ3Re/M23SxGHe3Oxi1H3zt ffdJ2UiABeI2o+qzy3W0wInAqL27+lWLfqd4QSM8fnhv3qlQ+dJe3OQRSgPaz/Mz5MrP 7gSQ== 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; bh=PmtO0fVfu3c2dNiyxnmOHhjF8V6QEHbnL309krUKL20=; b=a0jRBGTmJQ/IdfplXh+B+yIsRFcFMZEAzEU9G/siHUX8cnovVPqA0HP8/uLavlLMRY GbWw75wkVE0QJ+4tSch+3nUTFmlBybO5rjI9mug/sOPl6OeBHKfQL29E6UitM+8XG9dc CS0Vj2Ao9JMRos2xVNYdlp1K4zJVUZCCKtD4TdM4zscYpDVMwSjFU8mNyqgcgYa9RynW 3q5m17j6JH0aatS/bnjzlUo/DsVhRkqTpBodXlQ+sp7SmbNVcj4lJu1ed6j34EqCb/J/ NJydeXpCGtjG73eBQLsgcmrhtpWUjGdm6JXJo26JVUx4+PvcL/n7FYPu1sNIBRFnNe7v ndyA== 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 y24si3170903oih.24.2019.12.12.07.08.40; Thu, 12 Dec 2019 07:09:12 -0800 (PST) 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 S1728935AbfLLPHv (ORCPT + 99 others); Thu, 12 Dec 2019 10:07:51 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44968 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728815AbfLLPHu (ORCPT ); Thu, 12 Dec 2019 10:07:50 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBCF7c8I009948 for ; Thu, 12 Dec 2019 10:07:49 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2wu1fnmg97-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Dec 2019 10:07:48 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Dec 2019 15:07:46 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 12 Dec 2019 15:07:41 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xBCF7eX939977108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2019 15:07:40 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB5C04C040; Thu, 12 Dec 2019 15:07:40 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D51B4C044; Thu, 12 Dec 2019 15:07:38 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av22.portsmouth.uk.ibm.com (Postfix) with SMTP; Thu, 12 Dec 2019 15:07:38 +0000 (GMT) Date: Thu, 12 Dec 2019 20:37:37 +0530 From: Srikar Dronamraju To: Peter Zijlstra Cc: Dave Chinner , Phil Auld , Ming Lei , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Moyer , Dave Chinner , Eric Sandeen , Christoph Hellwig , Jens Axboe , Ingo Molnar , Tejun Heo , Vincent Guittot Subject: Re: [PATCH v4] sched/core: Preempt current task in favour of bound kthread Reply-To: Srikar Dronamraju References: <20191120191636.GI4097@hirez.programming.kicks-ass.net> <20191120220313.GC18056@pauld.bos.csb> <20191121132937.GW4114@hirez.programming.kicks-ass.net> <20191209165122.GA27229@linux.vnet.ibm.com> <20191209231743.GA19256@dread.disaster.area> <20191210054330.GF27253@linux.vnet.ibm.com> <20191210172307.GD9139@linux.vnet.ibm.com> <20191211173829.GB21797@linux.vnet.ibm.com> <20191211224617.GE19256@dread.disaster.area> <20191212101031.GV2827@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20191212101031.GV2827@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-TM-AS-GCONF: 00 x-cbid: 19121215-0028-0000-0000-000003C7E3ED X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19121215-0029-0000-0000-0000248B1DE8 Message-Id: <20191212150737.GC21797@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-12_03:2019-12-12,2019-12-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 bulkscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912120117 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra [2019-12-12 11:10:31]: > > +static struct sched_entity * > +__pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr); I think we already have __pick_next_entity in kernel/sched/fair.c static struct sched_entity *__pick_next_entity(struct sched_entity *se) { struct rb_node *next = rb_next(&se->run_node); if (!next) return NULL; return rb_entry(next, struct sched_entity, run_node); } I checked in v5.5-rc1, v5.4 and tip/master too. Let me know if you were referring to a different version of code. So I modified the only place its called to the newer __pick_next_entity(cfs_rq, curr); But wanted to verify if that's what you had in mind. -- Thanks and Regards Srikar Dronamraju