Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752593AbdLETLK (ORCPT ); Tue, 5 Dec 2017 14:11:10 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:33678 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752312AbdLETLH (ORCPT ); Tue, 5 Dec 2017 14:11:07 -0500 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: joelaf@google.com, jbacik@fb.com, mingo@redhat.com, peterz@infradead.org, efault@gmx.de, urezki@gmail.com, atish.patra@oracle.com Subject: [PATCH RFC v2] Fix race window during idle cpu selection. Date: Tue, 5 Dec 2017 13:09:06 -0600 Message-Id: <1512500947-24444-1-git-send-email-atish.patra@oracle.com> X-Mailer: git-send-email 2.7.4 X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 673 Lines: 22 This patch tries to fix a possible race window that lets multiple tasks wakeup on the same cpu. schbench, uperf & Jackbench (Android) mostly showed improvements while none of the other standard benchmarks have shown any regression. changes from v1->v2: 1. Added the performance numbers. 2. Did not include the debug patch. It can still be found at https://lkml.org/lkml/2017/10/31/16 Atish Patra (1): sched: Minimize the idle cpu selection race window. kernel/sched/core.c | 4 ++++ kernel/sched/fair.c | 12 +++++++++--- kernel/sched/idle_task.c | 1 + kernel/sched/sched.h | 1 + 4 files changed, 15 insertions(+), 3 deletions(-) -- 2.7.4