Tejun Heo
bc2fb7ed08
cgroup: add @flags to css_task_iter_start() and implement CSS_TASK_ITER_PROCS
...
css_task_iter currently always walks all tasks. With the scheduled
cgroup v2 thread support, the iterator would need to handle multiple
types of iteration. As a preparation, add @flags to
css_task_iter_start() and implement CSS_TASK_ITER_PROCS. If the flag
is not specified, it walks all tasks as before. When asserted, the
iterator only walks the group leaders.
For now, the only user of the flag is cgroup v2 "cgroup.procs" file
which no longer needs to skip non-leader tasks in cgroup_procs_next().
Note that cgroup v1 "cgroup.procs" can't use the group leader walk as
v1 "cgroup.procs" doesn't mean "list all thread group leaders in the
cgroup" but "list all thread group id's with any threads in the
cgroup".
While at it, update cgroup_procs_show() to use task_pid_vnr() instead
of task_tgid_vnr(). As the iteration guarantees that the function
only sees group leaders, this doesn't change the output and will allow
sharing the function for thread iteration.
Signed-off-by: Tejun Heo <[email protected] >
2017-07-21 11:14:51 -04:00
..
6lowpan
9p
Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 12:00:42 -07:00
802
net: introduce __skb_put_[zero, data, u8]
2017-06-20 13:30:14 -04:00
8021q
net: add netlink_ext_ack argument to rtnl_link_ops.validate
2017-06-26 23:13:22 -04:00
appletalk
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
atm
net, atm: convert eg_cache_entry.use from atomic_t to refcount_t
2017-07-04 22:35:16 +01:00
ax25
net, ax25: convert ax25_cb.refcount from atomic_t to refcount_t
2017-07-04 22:35:19 +01:00
batman-adv
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
bluetooth
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-07-05 12:31:59 -07:00
bpf
bridge
bridge: mdb: fix leak on complete_info ptr on fail path
2017-07-11 20:01:39 -07:00
caif
net: convert sock.sk_wmem_alloc from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
can
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
ceph
Add wait_for_random_bytes() and get_random_*_wait() functions so that
2017-07-15 12:44:02 -07:00
core
cgroup: add @flags to css_task_iter_start() and implement CSS_TASK_ITER_PROCS
2017-07-21 11:14:51 -04:00
dcb
dcb: enforce minimum length on IEEE_APPS attribute
2017-05-21 13:42:33 -04:00
dccp
net: convert sk_buff.users from atomic_t to refcount_t
2017-07-01 07:39:07 -07:00
decnet
net, decnet: convert dn_fib_info.fib_clntref from atomic_t to refcount_t
2017-07-04 22:35:15 +01:00
dns_resolver
dsa
net: manual clean code which call skb_put_[data:zero]
2017-06-20 13:30:15 -04:00
ethernet
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
hsr
net: add netlink_ext_ack argument to rtnl_link_ops.newlink
2017-06-26 23:13:21 -04:00
ieee802154
net: add netlink_ext_ack argument to rtnl_link_ops.validate
2017-06-26 23:13:22 -04:00
ife
ipv4
Add wait_for_random_bytes() and get_random_*_wait() functions so that
2017-07-15 12:44:02 -07:00
ipv6
net: ipv6: Compare lwstate in detecting duplicate nexthops
2017-07-06 10:48:01 +01:00
ipx
net, ipx: convert ipx_route.refcnt from atomic_t to refcount_t
2017-07-04 22:35:17 +01:00
irda
Merge branch 'work.memdup_user' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-05 16:05:24 -07:00
iucv
iucv: Convert sk_wmem_alloc accesses to refcount_t.
2017-07-03 02:31:22 -07:00
kcm
net: convert sock.sk_wmem_alloc from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
key
net, xfrm: convert xfrm_policy.refcnt from atomic_t to refcount_t
2017-07-04 22:35:18 +01:00
l2tp
net, l2tp: convert l2tp_session.ref_count from atomic_t to refcount_t
2017-07-04 22:35:15 +01:00
l3mdev
lapb
net, lapb: convert lapb_cb.refcnt from atomic_t to refcount_t
2017-07-04 22:35:16 +01:00
llc
net, llc: convert llc_sap.refcnt from atomic_t to refcount_t
2017-07-04 22:35:15 +01:00
mac80211
net: manual clean code which call skb_put_[data:zero]
2017-06-20 13:30:15 -04:00
mac802154
net: Fix inconsistent teardown and release of private netdev state.
2017-06-07 15:53:24 -04:00
mpls
mpls: fix uninitialized in_label var warning in mpls_getroute
2017-07-08 11:26:41 +01:00
ncsi
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
netfilter
net/netfilter/x_tables.c: use kvmalloc() in xt_alloc_table_info()
2017-07-12 16:26:02 -07:00
netlabel
netlink
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
netrom
net, netrom: convert nr_node.refcount from atomic_t to refcount_t
2017-07-04 22:35:17 +01:00
nfc
NFC: Add sockaddr length checks before accessing sa_family in bind handlers
2017-06-23 00:38:31 +02:00
openvswitch
openvswitch: fix mis-ordered comment lines for ovs_skb_cb
2017-07-03 05:54:00 -07:00
packet
net: convert packet_fanout.sk_ref from atomic_t to refcount_t
2017-07-01 07:39:09 -07:00
phonet
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
psample
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
qrtr
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
rds
rds: tcp: use sock_create_lite() to create the accept socket
2017-07-08 11:16:16 +01:00
rfkill
net: rfkill: gpio: Switch to devm_acpi_dev_add_driver_gpios()
2017-06-13 11:07:51 +02:00
rose
rxrpc
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
sched
mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_MAYFAIL with more useful semantic
2017-07-12 16:26:03 -07:00
sctp
sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find the correct route entry.
2017-07-06 11:39:54 +01:00
smc
strparser
sunrpc
NFS client updates for Linux 4.13
2017-07-13 14:35:37 -07:00
switchdev
net: switchdev: Change notifier chain to be atomic
2017-06-08 14:16:24 -04:00
tipc
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
tls
TLS: Fix length check in do_tls_getsockopt_tx()
2017-07-06 10:58:19 +01:00
unix
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-07-05 12:31:59 -07:00
vmw_vsock
net: manual clean code which call skb_put_[data:zero]
2017-06-20 13:30:15 -04:00
wimax
wireless
netlink validation fixes for nl80211
2017-07-07 11:35:55 +01:00
x25
net, x25: convert x25_neigh.refcnt from atomic_t to refcount_t
2017-07-04 22:35:18 +01:00
xfrm
net, xfrm: convert sec_path.refcnt from atomic_t to refcount_t
2017-07-04 22:35:18 +01:00
compat.c
get_compat_bpf_fprog(): don't copyin field-by-field
2017-07-04 13:14:34 -04:00
Kconfig
tls: kernel TLS support
2017-06-15 12:12:40 -04:00
Makefile
tls: kernel TLS support
2017-06-15 12:12:40 -04:00
socket.c
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:06:17 -07:00
sysctl_net.c