Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4797774pxu; Wed, 21 Oct 2020 05:47:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbT1IsN9coAqZDpx3s8fXZeF6PeeaCIPwjennKzj9kYFkOqVGYss2iEbFIXZOHGHIuE6z3 X-Received: by 2002:a05:6402:b91:: with SMTP id cf17mr2901609edb.130.1603284431934; Wed, 21 Oct 2020 05:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603284431; cv=none; d=google.com; s=arc-20160816; b=Rr2FOh04ssSot8dUMl96k5ZpvgE08HQXuZ8UaS1DsorUeve8VkBDL55kjoe5zv/mnN y3Qjx1rVXH9KUT0axERlXiwtd7zNq9ZunZr1ciETUV5D4/dewroW1Hgl9oIGASyVBYDp 4rnVtjbfZWMJqrd3vFXfM61wPdXEk9FR+x/jxjZUH65VNUGP6OJv6pxdY54JMFBsIk80 2uHcL3Xebedqc7MturQ4kCvzY5x9IEUT6UUdxsquY5pqjdhHu9x4CqyzLcs0iE8PYPN3 oTf/Ls00I9BBfU0IXUowfUH8L3Ua3rPaKz3DrLa+T2OhUwPihCI+SzAEU5hEirsRuYOA Eohw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=d9JhoxiSkl//TRpg6H0wTEK9OO42PSxN3Z9C2PUIcrs=; b=UPjv1lDS1DmbY0lGDOuo6BrRJVQcHFFfIyXDM9L0n02WS0Xubah21S1/Bk6U8fDBnK s+JI4G2bzVelfnVFofH9YjaGQPoOOY5O5QJu4eYJ7qXW5IRQdf8ENoJrx5AxUD/17Ded goi3X3SWUyk3tY9LOwxphhj1Uoy3YDCgmdjqhfAAgAb5+99gelAZYpNrSQ7BUycPaMmw 9t5uSIVrf2sZJo1JYxEeKes+clHEnLde7yZc1c1pEXRxe519rC8DyVi5LAJ1W2a/rm7m vjR9sp+MfD6a+CsYqh8ET5Fje7FR9nKv7wpkr3pVqgiYRtYyXCyy/iVDPN6/g4cMCkel BPZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FWZ3j6ic; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si1270433edq.372.2020.10.21.05.46.49; Wed, 21 Oct 2020 05:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FWZ3j6ic; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501883AbgJUH12 (ORCPT + 99 others); Wed, 21 Oct 2020 03:27:28 -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.