Revert "net: sched: consistently use rcu_replace_pointer() in taprio_change()"

This reverts commit 35c0601a6a.
This commit is contained in:
Ksawlii 2024-11-24 00:23:10 +01:00
parent 3eaf19ddc8
commit 33e3696215

View file

@ -1577,9 +1577,7 @@ static int taprio_change(struct Qdisc *sch, struct nlattr *opt,
goto unlock;
}
/* Not going to race against advance_sched(), but still */
admin = rcu_replace_pointer(q->admin_sched, new_admin,
lockdep_rtnl_is_held());
rcu_assign_pointer(q->admin_sched, new_admin);
if (admin)
call_rcu(&admin->rcu, taprio_free_sched_cb);
} else {