lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 25 Aug 2014 20:43:29 -0400
From:	Tejun Heo <tj@...nel.org>
To:	linux-kernel@...r.kernel.org
Cc:	cl@...ux-foundation.org
Subject: [PATCHSET percpu/for-3.18] add @gfp to init functions of percpu data structures

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ