[GIT PULL] percpu changes for v4.11-rc1

From: Tejun Heo
Date: Mon Feb 27 2017 - 17:53:36 EST


Hello, Linus.

Contains just one minor cleanup patch which gets rid of an unnecessary
irqsave/restore in the cpu dead callback.

Thanks.

The following changes since commit 44b4b461a0fb407507b46ea76a71376d74de7058:

Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc (2017-01-19 16:40:03 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-4.11

for you to fetch changes up to aaf0f2fa682861e47a4f6a8762d2b8a9a4a51077:

percpu_counter: percpu_counter_hotcpu_callback() cleanup (2017-01-20 10:06:56 -0500)

----------------------------------------------------------------
Eric Dumazet (1):
percpu_counter: percpu_counter_hotcpu_callback() cleanup

lib/percpu_counter.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index c8cebb1..9c21000 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -176,13 +176,12 @@ static int percpu_counter_cpu_dead(unsigned int cpu)
spin_lock_irq(&percpu_counters_lock);
list_for_each_entry(fbc, &percpu_counters, list) {
s32 *pcount;
- unsigned long flags;

- raw_spin_lock_irqsave(&fbc->lock, flags);
+ raw_spin_lock(&fbc->lock);
pcount = per_cpu_ptr(fbc->counters, cpu);
fbc->count += *pcount;
*pcount = 0;
- raw_spin_unlock_irqrestore(&fbc->lock, flags);
+ raw_spin_unlock(&fbc->lock);
}
spin_unlock_irq(&percpu_counters_lock);
#endif

--
tejun