We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae28d1a commit a0195f3Copy full SHA for a0195f3
arch/x86/kernel/cpu/resctrl/rdtgroup.c
@@ -546,6 +546,13 @@ static void update_task_closid_rmid(struct task_struct *t)
546
static int __rdtgroup_move_task(struct task_struct *tsk,
547
struct rdtgroup *rdtgrp)
548
{
549
+ /* If the task is already in rdtgrp, no need to move the task. */
550
+ if ((rdtgrp->type == RDTCTRL_GROUP && tsk->closid == rdtgrp->closid &&
551
+ tsk->rmid == rdtgrp->mon.rmid) ||
552
+ (rdtgrp->type == RDTMON_GROUP && tsk->rmid == rdtgrp->mon.rmid &&
553
+ tsk->closid == rdtgrp->mon.parent->closid))
554
+ return 0;
555
+
556
/*
557
* Set the task's closid/rmid before the PQR_ASSOC MSR can be
558
* updated by them.
0 commit comments