Re: [PATCH v3 04/12] RISC-V: Disable preemption before enabling interrupts

From: Christoph Hellwig
Date: Mon Sep 10 2018 - 07:24:48 EST


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 <palmer@xxxxxxxxxx>
> [Atish: Commit text and code comment formatting update]
> Signed-off-by: Atish Patra <atish.patra@xxxxxxx>

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>