cgroup-remove-cgroup_rstat_flush_atomic.patch removed from -mm tree
The quilt patch titled
Subject: cgroup: remove cgroup_rstat_flush_atomic()
has been removed from the -mm tree. Its filename was
cgroup-remove-cgroup_rstat_flush_atomic.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yosry Ahmed <[email protected]>
Subject: cgroup: remove cgroup_rstat_flush_atomic()
Date: Fri, 21 Apr 2023 17:40:20 +0000
Previous patches removed the only caller of cgroup_rstat_flush_atomic(). Remove the function and simplify the code.
Signed-off-by Yosry Ahmed <[email protected]>
Acked-by Shakeel Butt <[email protected]>
Acked-by Tejun Heo <[email protected]>
Cc Alexander Viro <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Jan Kara <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Michal Koutný <[email protected]>
Cc Muchun Song <[email protected]>
Cc Roman Gushchin <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/cgroup.h | 1 - kernel/cgroup/rstat.c | 26 +++++--------------------- 2 files changed, 5 insertions(+), 22 deletions(-)
include/linux/cgroup.h renamed from include/linux/cgroup.h~cgroup-remove-cgroup_rstat_flush_atomic +0 -1
@@ -692,7 +692,6 @@ static inline void cgroup_path_from_kern*/ void cgroup_rstat_updated (struct cgroup *cgrp,int cpu);void cgroup_rstat_flush (struct cgroup *cgrp); -void cgroup_rstat_flush_atomic (struct cgroup *cgrp);void cgroup_rstat_flush_hold (struct cgroup *cgrp);void cgroup_rstat_flush_release (void );
kernel/cgroup/rstat.c renamed from kernel/cgroup/rstat.c~cgroup-remove-cgroup_rstat_flush_atomic +5 -21
@@ -171,7 +171,7 @@ __weak noinline void bpf_rstat_flush(str__diag_pop ();/* see cgroup_rstat_flush() */ -static void cgroup_rstat_flush_locked (struct cgroup *cgrp,bool may_sleep) +static void cgroup_rstat_flush_locked (struct cgroup *cgrp) __releases(&cgroup_rstat_lock) __acquires(&cgroup_rstat_lock) {int cpu;
@@ -207,9 +207,8 @@ static void cgroup_rstat_flush_locked(st }raw_spin_unlock_irqrestore (cpu_lock, flags); -/* if @may_sleep, play nice and yield if necessary */ -if (may_sleep && (need_resched () || -spin_needbreak (&cgroup_rstat_lock))) { +/* play nice and yield if necessary */ +if (need_resched () ||spin_needbreak (&cgroup_rstat_lock)) {spin_unlock_irq (&cgroup_rstat_lock);if (!cond_resched ())cpu_relax ();
@@ -236,26 +235,11 @@ __bpf_kfunc void cgroup_rstat_flush(strumight_sleep ();spin_lock_irq (&cgroup_rstat_lock); -cgroup_rstat_flush_locked (cgrp, true); +cgroup_rstat_flush_locked (cgrp);spin_unlock_irq (&cgroup_rstat_lock); }/** -* cgroup_rstat_flush_atomic- atomic version of cgroup_rstat_flush() -* @cgrp: target cgroup -* -* This function can be called from any context. -*/ -void cgroup_rstat_flush_atomic (struct cgroup *cgrp) -{ -unsigned long flags; - -spin_lock_irqsave (&cgroup_rstat_lock, flags); -cgroup_rstat_flush_locked (cgrp, false); -spin_unlock_irqrestore (&cgroup_rstat_lock, flags); -} - -/** * cgroup_rstat_flush_hold - flush stats in @cgrp's subtree and hold * @cgrp: target cgroup *
@@ -269,7 +253,7 @@ void cgroup_rstat_flush_hold(struct cgro {might_sleep ();spin_lock_irq (&cgroup_rstat_lock); -cgroup_rstat_flush_locked (cgrp, true); +cgroup_rstat_flush_locked (cgrp); }/**
_
Patches currently in -mm which might be from [email protected] are
mm-zswap-support-exclusive-loads.patch