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.
2 parents 986968f + d2138c1 commit 88c9f0aCopy full SHA for 88c9f0a
kernel/cgroup/rstat.c
@@ -323,13 +323,11 @@ static void cgroup_rstat_flush_locked(struct cgroup *cgrp)
323
rcu_read_unlock();
324
}
325
326
- /* play nice and yield if necessary */
327
- if (need_resched() || spin_needbreak(&cgroup_rstat_lock)) {
328
- __cgroup_rstat_unlock(cgrp, cpu);
329
- if (!cond_resched())
330
- cpu_relax();
331
- __cgroup_rstat_lock(cgrp, cpu);
332
- }
+ /* play nice and avoid disabling interrupts for a long time */
+ __cgroup_rstat_unlock(cgrp, cpu);
+ if (!cond_resched())
+ cpu_relax();
+ __cgroup_rstat_lock(cgrp, cpu);
333
334
335
0 commit comments