Re: Raw spinlocks and memory allocation

From: Andrew Morton
Date: Fri Jul 31 2020 - 17:29:22 EST


On Fri, 31 Jul 2020 14:24:57 -0700 "Paul E. McKenney" <paulmck@xxxxxxxxxx> wrote:

> The reason for this restriction is that in -rt, the spin_lock(&zone->lock)
> in rmqueue_bulk() can sleep.

So if there is runtime overhead, this overhead could be restricted to
-rt kernels with suitable ifdefs?