summaryrefslogtreecommitdiff
path: root/include/net/netprio_cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-11-05 02:54:29 +0300
committerTejun Heo <tj@kernel.org>2019-11-12 19:18:03 +0300
commitdb53c73a8b5db120cb741d7d932cdf831a576e8f (patch)
treeadf1622e1ad7b8de472121a8e78207d2c85c53f7 /include/net/netprio_cgroup.h
parentf05499a06fb4348b935dd2ffc2c86a76705486be (diff)
downloadlinux-db53c73a8b5db120cb741d7d932cdf831a576e8f.tar.xz
netprio: use css ID instead of cgroup ID
netprio uses cgroup ID to index the priority mapping table. This is currently okay as cgroup IDs are allocated using idr and packed. However, cgroup IDs will be changed to use full 64bit range and won't be packed making this impractical. netprio doesn't care what type of IDs it uses as long as they can identify the controller instances and are packed. Let's switch to css IDs instead of cgroup IDs. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Neil Horman <nhorman@tuxdriver.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'include/net/netprio_cgroup.h')
-rw-r--r--include/net/netprio_cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netprio_cgroup.h b/include/net/netprio_cgroup.h
index cfc9441ef074..dec7522b6ce1 100644
--- a/include/net/netprio_cgroup.h
+++ b/include/net/netprio_cgroup.h
@@ -26,7 +26,7 @@ static inline u32 task_netprioidx(struct task_struct *p)
rcu_read_lock();
css = task_css(p, net_prio_cgrp_id);
- idx = css->cgroup->id;
+ idx = css->id;
rcu_read_unlock();
return idx;
}