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

- From: Valentin Schneider \<hidden\>
- Date: 2021-06-10 12:59:51 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/06/1409921
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/06/1406870/t.md

```text
On 08/06/21 19:02, 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 either using cgroup v1 or we're using
> cgroup v2 with a mask that contains invalid CPUs. This will allow
> select_fallback_rq() to figure out the mask by itself.
>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Reviewed-by: Quentin Perret <redacted>
> Signed-off-by: Will Deacon <will@kernel.org>

Reviewed-by: Valentin Schneider <redacted>

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