# Re: \[PATCH v3 09/14\] cpuset: Don't use the cpu\_possible\_mask as a last resort for cgroup v1

- From: Will Deacon \<will@kernel.org\>
- Date: 2020-11-19 11:07:03 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/11/6182471
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/11/6175019/t.md

```text
On Thu, Nov 19, 2020 at 09:29:22AM +0000, Quentin Perret wrote:
> On Friday 13 Nov 2020 at 09:37:14 (+0000), Will Deacon wrote:
> > If the scheduler cannot find an allowed CPU for a task,
> > cpuset_cpus_allowed_fallback() will widen the affinity to cpu_possible_mask
> > if cgroup v1 is in use.
> > 
> > In preparation for allowing architectures to provide their own fallback
> > mask, just return early if we're not using cgroup v2 and allow
> > select_fallback_rq() to figure out the mask by itself.
> > 
> > Cc: Li Zefan <redacted>
> > Cc: Tejun Heo <tj@kernel.org>
> > Cc: Johannes Weiner <hannes@cmpxchg.org>
> > Signed-off-by: Will Deacon <will@kernel.org>
> 
> That makes select_fallback_rq() slightly more expensive if you're using
> cgroup v1, but I don't expect that be really measurable in real-world
> workloads, so:
> 
> Reviewed-by: Quentin Perret <redacted>

Cheers!

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
