[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210208190735.ibq44r5pc4cwzt7j@linutronix.de>
Date: Mon, 8 Feb 2021 20:07:35 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Willy Tarreau <w@....eu>
Subject: Re: [PATCH] auxdisplay: Remove in_interrupt() usage.
On 2021-02-08 19:38:10 [+0100], Miguel Ojeda wrote:
> Hi Sebastian,
Hi,
> > Therefore there is no need to use `in_interrupt()' to figure out if it
> > is save to sleep because it always is.
>
> save -> safe
>
> Does it hurt to have `in_interrupt()`? Future patches could make it so
Yes.
> that it is no longer a preemptible context. Should it be moved to e.g.
> a `WARN_ON()` instead?
No. If you know the context, pass it along like this is done for
kmalloc() for instance. The long term plan is not make it available to
divers (i.e. core code only where the context can not be known).
> Thanks for the patch!
I'm going to resend it with your corrections.
> Cheers,
> Miguel
Sebastian
Powered by blists - more mailing lists