From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E14C7C4363A for ; Wed, 21 Oct 2020 07:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E1D921741 for ; Wed, 21 Oct 2020 07:27:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FWZ3j6ic"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gjsHXifl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501887AbgJUH13 (ORCPT ); Wed, 21 Oct 2020 03:27:29 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38928 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440901AbgJUH1Z (ORCPT ); Wed, 21 Oct 2020 03:27:25 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603265242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d9JhoxiSkl//TRpg6H0wTEK9OO42PSxN3Z9C2PUIcrs=; b=FWZ3j6icl+AUwgJ4utKAmAy8jgbWhXNgF0vYdTVSNQVRPzTRB06XNlrmFvD4MJpfmtMdQ4 R06PRzo/YeuEG+P/nnBhs9wwS2qkVl1DqUThb36UpNDSjAiJY8yM9ywypSiyXd/amQCE9G 3Oqc+7RIVvj1SO49CeSucWmu/opjadZBag7+Z0roAExCz28c1lcHQrapFDMPXamIm/qcN1 +I6m3Es7rf8Z7eyC8EWOSiq3+bLml43s8jV3nZnBP0rjo4cnSyvZG35Ujw3b6VWrs/4Z8D 0s0xNRLxpP5/vAxQ+aPd/GbgnYTbPd3Nbb2oko2RkeKHywmk3Qp0+VUmIjq6ow== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603265242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d9JhoxiSkl//TRpg6H0wTEK9OO42PSxN3Z9C2PUIcrs=; b=gjsHXiflWNLQr2vc4+ld1RCRfwAGDI2iigskzNe5o0LtNk25Xqof4qbFU5W4CHkD/Ve32L 19mkCJa5IIHMt4CQ== To: Steven Rostedt Cc: LKML , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Subject: Re: sched: Reenable interrupts in do sched_yield() In-Reply-To: <20201020160732.5f8fc24e@oasis.local.home> References: <87r1pt7y5c.fsf@nanos.tec.linutronix.de> <20201020113830.378b4a4c@gandalf.local.home> <87o8kw93n4.fsf@nanos.tec.linutronix.de> <20201020160732.5f8fc24e@oasis.local.home> Date: Wed, 21 Oct 2020 09:27:22 +0200 Message-ID: <87h7qo6ntx.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20 2020 at 16:07, Steven Rostedt wrote: > On Tue, 20 Oct 2020 20:02:55 +0200 > Thomas Gleixner wrote: > What I wrote wasn't exactly what I meant. What I meant to have: > > /* > * Since we are going to call schedule() anyways, there's > * no need to do the preemption check when the rq_lock is released. > */ > > That is, to document why we have the preempt_disable() before the unlock: which is pretty obvious, but I let Peter decide on that.