Re: [PATCH v3] SLUB: Add support for per object memory policies

From: Christoph Lameter (Ampere)
Date: Mon Oct 07 2024 - 12:30:31 EST


On Sun, 6 Oct 2024, Hyeonggon Yoo wrote:

> > + */
> > + if (mpol->mode != MPOL_BIND || !slab ||
> > + !node_isset(slab_nid(slab), mpol->nodes))
> > +
> > + node = mempolicy_slab_node();
> > + }
>
> Is it intentional to allow the local node only (via
> mempolicy_slab_node()) in interrupt contexts?

Yes that is the general approach since the task context is generally not
valid for the interrupt which is usually from a device that is not task
specific.