linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET percpu/for-3.18] add @gfp to init functions of percpu data structures
@ 2014-08-26  0:43 Tejun Heo
  2014-08-26  0:43 ` [PATCH 1/3] percpu_counter: add @gfp to percpu_counter_init() Tejun Heo
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Tejun Heo @ 2014-08-26  0:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: cl

There's now a pending patchset[1] which implements atomic percpu
allocation.  This patchset propagates @gfp to percpu data structures
so that they can be allocated and initialized from !GFP_KERNEL
contexts too.  This will be used for opportunistic allocations of data
structures embedding percpu constructs in IO path.

This patchset adds @gfp to alloc/init functions of percpu_counter,
[flex_]proportions and percpu-refcount.  We could add separate
alloc/init functions which take @gfp but there aren't too many users
yet, so let's just add it to the existing ones.

This patchset contains the following patches

 0001-percpu_counter-add-gfp-to-percpu_counter_init.patch
 0002-proportions-add-gfp-to-init-functions.patch
 0003-percpu-refcount-add-gfp-to-percpu_ref_init.patch

and is on top of

 [1] [PATCHSET REPOST percpu/for-3.18] percpu: implement atomic allocation support

and avaliable in the following git branch.

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git/review-add-gfps

diffstat follows.  Thanks.

 arch/x86/kvm/mmu.c               |    2 +-
 drivers/target/target_core_tpg.c |    3 ++-
 fs/aio.c                         |    4 ++--
 fs/btrfs/disk-io.c               |    8 ++++----
 fs/btrfs/extent-tree.c           |    2 +-
 fs/ext2/super.c                  |    6 +++---
 fs/ext3/super.c                  |    6 +++---
 fs/ext4/super.c                  |   14 +++++++++-----
 fs/file_table.c                  |    2 +-
 fs/quota/dquot.c                 |    2 +-
 fs/super.c                       |    3 ++-
 include/linux/flex_proportions.h |    5 +++--
 include/linux/percpu-refcount.h  |    3 ++-
 include/linux/percpu_counter.h   |   10 ++++++----
 include/linux/proportions.h      |    5 +++--
 include/net/dst_ops.h            |    2 +-
 include/net/inet_frag.h          |    2 +-
 kernel/cgroup.c                  |    6 +++---
 lib/flex_proportions.c           |    8 ++++----
 lib/percpu-refcount.c            |    6 ++++--
 lib/percpu_counter.c             |    4 ++--
 lib/proportions.c                |   10 +++++-----
 mm/backing-dev.c                 |    4 ++--
 mm/mmap.c                        |    2 +-
 mm/nommu.c                       |    2 +-
 mm/page-writeback.c              |    2 +-
 mm/shmem.c                       |    2 +-
 net/dccp/proto.c                 |    2 +-
 net/ipv4/tcp.c                   |    4 ++--
 net/ipv4/tcp_memcontrol.c        |    2 +-
 net/sctp/protocol.c              |    2 +-
 31 files changed, 74 insertions(+), 61 deletions(-)

--
tejun

[1] http://lkml.kernel.org/g/1408726399-4436-1-git-send-email-tj@kernel.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-08  0:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26  0:43 [PATCHSET percpu/for-3.18] add @gfp to init functions of percpu data structures Tejun Heo
2014-08-26  0:43 ` [PATCH 1/3] percpu_counter: add @gfp to percpu_counter_init() Tejun Heo
2014-08-26  0:46   ` David Miller
2014-08-26 10:21   ` Jan Kara
2014-08-26  0:43 ` [PATCH 2/3] proportions: add @gfp to init functions Tejun Heo
2014-08-26 10:19   ` Jan Kara
2014-08-26  0:43 ` [PATCH 3/3] percpu-refcount: add @gfp to percpu_ref_init() Tejun Heo
2014-08-26 15:35   ` [PATCH v2 " Tejun Heo
2014-09-08  0:30 ` [PATCH 0.5/3] percpu_counter: make percpu_counters_lock irq-safe Tejun Heo
2014-09-08  0:30 ` [PATCHSET percpu/for-3.18] add @gfp to init functions of percpu data structures Tejun Heo

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).