On Mon, Apr 03, 2023 at 01:18:42PM -0400, Waiman Long <longman@xxxxxxxxxx> wrote:Good point. That will require a can_fork() method then. I will look into that.
1) PF_NO_SETAFFINITY flag - which won't be set in the case of fork() as itBTW what about CLONE_INTO_CGROUP where the target cpuset has empty
is for kthread only.
2) DL bandwidth - Juri has a cpuset outstanding to modify the way this check
is being done. I want to wait until it is settled before tackling this, if
necessary.
effective cpuset?
It is just checking of the task the has privilege of running into that cgroup.
3) security_task_setscheduler() - the CLONE_INTO_CGROUP code has alreadyNot sure what this refers to.
checked that, we don't need to duplicate the check.
So we don't need a can_fork() check for now.Anyway, good breakdown. Could you please add it to the commit message
too?
Regards,
Michal