From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986AbdB0Wxe (ORCPT ); Mon, 27 Feb 2017 17:53:34 -0500 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33502 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbdB0Wxb (ORCPT ); Mon, 27 Feb 2017 17:53:31 -0500 Date: Mon, 27 Feb 2017 15:03:57 -0500 From: Tejun Heo To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu changes for v4.11-rc1 Message-ID: <20170227200357.GD8707@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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