Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2640386imm; Mon, 10 Sep 2018 04:26:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaZl/XwzCJ5rtCcCMgchq+LisYSHJjYISuQXP7b4TVcJSZOAXD3NnQDg4OGSw3HDtO1AXhZ X-Received: by 2002:a63:225f:: with SMTP id t31-v6mr22065268pgm.275.1536578791056; Mon, 10 Sep 2018 04:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536578791; cv=none; d=google.com; s=arc-20160816; b=erT7R67fdxIq0XnW10sikriFwNbRExb8RBiNKIsW3DwSig8ltsOGNY4LAJzBa2tzwv JOqm7Wjyr0vjY8X0w0btNPpUnh5TBCdFGlvwfZ9QcBc+2MMXtnNi/WFG5wLj4sP0GUMH Xncpx9C5YY+ckE4Y47t3lakxwhwwGDkTTjeRx9eIjf3tt/JAHje4DSJQedYoxRCP+RYY aZrO5fgd6jczDMe/HwZpBrUApjJOWYvc0IZjV0ftEN8cPRJ7ZzKGFVc2KnhBdjPgBhNa XGvX8wNS9JYJdZK54o+02gXy1SsfeZ5CUJplio8Qmmt6F9HwE+4f3/fiUuoEDYhcmFvc 5Aaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1MMOH2ALwC/omBErqjPDN4/uNe5vB+n/SJ0p/rc+f0g=; b=BAx0yBPfb00G2rAvHik834gMNOpwzvVWYfBqtrsOdtMc5G3S1htvlzNl8dYDR6cx63 khjQgivFQRXGnusmM3HvpjTm9Jk8tA/14ZA6o57IJGTjokKrLLcrDYsAa4MSO5teW4rl ++rRYSyg9qyjwPYZefDtJfx7xE6kdeVjtZy4peWniuM7WoL+kFN/bSiJwafU4JnrBvvP Fo6FMlbLEGfbQMuh6ZVxPwmM+DVPIo4NHs/oG5IHW+fXil8VlF50IqeXbXK4y+bGQbom JmEecDcuPFkCQ21Sigs91MfZ05XO3YnX8xvMo32BL2ERaIbU8tKNBoDglI7eCLjAPn4C DyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ky+pWNQv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si17075752pgd.400.2018.09.10.04.26.15; Mon, 10 Sep 2018 04:26:31 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ky+pWNQv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728321AbeIJQSV (ORCPT + 99 others); Mon, 10 Sep 2018 12:18:21 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53514 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbeIJQSV (ORCPT ); Mon, 10 Sep 2018 12:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1MMOH2ALwC/omBErqjPDN4/uNe5vB+n/SJ0p/rc+f0g=; b=ky+pWNQvOnC0PONM/uBQwkWoG i+VAG+uBRArndNkVR5rrYuHQpyvnPVaGek3znAAC4JZYKaw8o3qrgaz7YAhAtMWhiE9WQESBS8KnO Xm0wk0nPANforbjpwCuURC5T4EMD6diwQK1PxvFxj6sby9zzlzhzdfdrIimGsAbfev5v8JNQd2nB3 JNQVmFfGD/fJ7UCYyrdwqh4u91tVhKKJDQZe3tMZql55fgS5Klhe1DVzqA/8c0AwwUU3pd6wlGjcb EnmnUoXPm2x2/cJ402wagqKKbfe9m/MV1s1WRuBcfV4m2UnrCv2PEbT2v+I4DnHzKzMagbe4Ke6WF auFchki+A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzKJ9-0005bQ-CV; Mon, 10 Sep 2018 11:24:43 +0000 Date: Mon, 10 Sep 2018 04:24:43 -0700 From: Christoph Hellwig To: Atish Patra Cc: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org, mark.rutland@arm.com, Damien.LeMoal@wdc.com, jason@lakedaemon.net, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, dmitriy@oss-tech.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, catalin.marinas@arm.com, tglx@linutronix.de Subject: Re: [PATCH v3 04/12] RISC-V: Disable preemption before enabling interrupts Message-ID: <20180910112443.GD12979@infradead.org> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-5-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536221135-182613-5-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 01:05:27AM -0700, Atish Patra wrote: > Currently, irq is enabled before preemption disabling happens. > If the scheduler fired right here and cpu is scheduled then it > may blow up. > > Signed-off-by: Palmer Dabbelt > [Atish: Commit text and code comment formatting update] > Signed-off-by: Atish Patra Looks good, Reviewed-by: Christoph Hellwig