linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	Peter Zijlstra <peterz@infradead.org>,
	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
	Xunlei Pang <xlpang@redhat.com>, Rik van Riel <riel@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH 0/4] [RFC] cpumask: Robustify the var-cpumask allocation APIs
Date: Mon,  7 Dec 2015 09:49:40 +0100	[thread overview]
Message-ID: <1449478184-27168-1-git-send-email-mingo@kernel.org> (raw)

Hi Rusty,

this is the cpumask API robustification change we talked about in this
lkml thread:

  [PATCH] sched/core: Clear the root_domain cpumasks in init_rootdomain()

The idea is to first migrate all users of alloc_cpumask_var() to
zalloc_cpumask_var(), then remove the old API.

We still keep __alloc_cpumask_var_node(), for users who absolutely want
to micro-manage their cpumask allocations.

I also addressed a related naming ambiguity in alloc_bootmem_cpumask_var().

Lightly tested.

( If you like this series I can merge it via -tip, or you can pick it up,
  your call! )

Thanks,

	Ingo

========>


Ingo Molnar (4):
  cpumask: Migrate 'alloc_cpumask_var()' users to 'zalloc_cpumask_var()'
  cpumask: Remove 'alloc_cpumask_var()'
  cpumask: Rename 'alloc_bootmem_cpumask_var()' to 'zalloc_bootmem_cpumask_var()'
  cpumask: Rename 'alloc_cpumask_var_node()' to '__alloc_cpumask_var_node()'

 arch/ia64/kernel/smp.c                      |  2 +-
 arch/mips/kernel/mips-mt-fpaff.c            |  6 +++---
 arch/powerpc/kernel/irq.c                   |  2 +-
 arch/powerpc/kernel/rtas.c                  |  4 ++--
 arch/powerpc/kernel/smp.c                   |  2 +-
 arch/powerpc/mm/numa.c                      |  2 +-
 arch/powerpc/platforms/powernv/subcore.c    |  2 +-
 arch/powerpc/platforms/pseries/smp.c        |  2 +-
 arch/powerpc/platforms/pseries/suspend.c    |  2 +-
 arch/x86/kernel/apic/vector.c               |  4 ++--
 arch/x86/kernel/cpu/common.c                |  8 +++----
 arch/x86/kernel/cpu/mcheck/mce-inject.c     |  2 +-
 arch/x86/kernel/smp.c                       |  2 +-
 arch/x86/mm/mmio-mod.c                      |  2 +-
 arch/x86/mm/numa.c                          |  2 +-
 arch/x86/platform/uv/uv_nmi.c               |  2 +-
 arch/x86/xen/mmu.c                          |  2 +-
 arch/x86/xen/smp.c                          |  2 +-
 block/blk-mq-cpumap.c                       |  2 +-
 crypto/pcrypt.c                             |  4 ++--
 drivers/acpi/acpi_pad.c                     |  2 +-
 drivers/acpi/processor_throttling.c         |  2 +-
 drivers/base/cpu.c                          |  2 +-
 drivers/cpufreq/cpufreq.c                   |  2 +-
 drivers/crypto/n2_core.c                    |  2 +-
 drivers/firmware/dcdbas.c                   |  2 +-
 drivers/hwmon/dell-smm-hwmon.c              |  2 +-
 drivers/net/ethernet/intel/i40e/i40e_main.c |  2 +-
 drivers/pci/host/pci-xgene-msi.c            |  2 +-
 drivers/scsi/mpt3sas/mpt3sas_base.c         |  2 +-
 drivers/virtio/virtio_pci_common.c          |  2 +-
 include/linux/cpumask.h                     | 20 ++++++-----------
 kernel/compat.c                             |  4 ++--
 kernel/cpu.c                                |  2 +-
 kernel/cpuset.c                             | 16 +++++++-------
 kernel/irq/irqdesc.c                        |  2 +-
 kernel/irq/manage.c                         |  6 +++---
 kernel/irq/proc.c                           |  4 ++--
 kernel/padata.c                             | 10 ++++-----
 kernel/profile.c                            |  4 ++--
 kernel/rcu/tree_plugin.h                    |  2 +-
 kernel/sched/core.c                         | 16 +++++++-------
 kernel/smpboot.c                            |  4 ++--
 kernel/taskstats.c                          |  4 ++--
 kernel/time/tick-sched.c                    |  6 +++---
 kernel/torture.c                            |  2 +-
 kernel/trace/ring_buffer.c                  |  2 +-
 kernel/trace/trace.c                        | 10 ++++-----
 kernel/workqueue.c                          |  4 ++--
 lib/cpumask.c                               | 33 ++++++++++++++---------------
 mm/vmstat.c                                 |  2 +-
 net/core/flow.c                             |  2 +-
 net/core/net-sysfs.c                        |  4 ++--
 net/core/sysctl_net_core.c                  |  2 +-
 54 files changed, 116 insertions(+), 123 deletions(-)

-- 
2.5.0


             reply	other threads:[~2015-12-07  8:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07  8:49 Ingo Molnar [this message]
2015-12-07  8:49 ` [PATCH 1/4] cpumask: Migrate 'alloc_cpumask_var()' users to 'zalloc_cpumask_var()' Ingo Molnar
2015-12-08  1:28   ` Linus Torvalds
2015-12-08  4:09     ` Ingo Molnar
2015-12-08  4:13       ` Ingo Molnar
     [not found]         ` <CA+55aFyOXsv6uY3Dyc=i3SmwFD8XQYZeqzPXz36qzvdOD=gZSg@mail.gmail.com>
2015-12-16  0:26           ` Rusty Russell
2015-12-07  8:49 ` [PATCH 2/4] cpumask: Remove 'alloc_cpumask_var()' Ingo Molnar
2015-12-07  8:49 ` [PATCH 3/4] cpumask: Rename 'alloc_bootmem_cpumask_var()' to 'zalloc_bootmem_cpumask_var()' Ingo Molnar
2015-12-07  8:49 ` [PATCH 4/4] cpumask: Rename 'alloc_cpumask_var_node()' to '__alloc_cpumask_var_node()' Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1449478184-27168-1-git-send-email-mingo@kernel.org \
    --to=mingo@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=riel@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=xlpang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).