[Devel] [PATCH RHEL8 COMMIT] ve/net: drop ve_net_lock()/ve_net_unlock() helpers
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Apr 8 18:44:48 MSK 2019
The commit is pushed to "branch-rh8-4.18.0-32.vz8.1.x" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-32.el8
------>
commit 9111a3b734be664abd28177b19f760d62eb8297d
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date: Mon Apr 8 15:29:33 2019 +0300
ve/net: drop ve_net_lock()/ve_net_unlock() helpers
All users of ve_net_lock()/ve_net_unlock() are removed,
so drop helpers as well.
Fixes: 9a464cd60bd9 ("ve: Link net and ve_struct")
https://jira.sw.ru/browse/PSBM-93640
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
include/linux/ve.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/include/linux/ve.h b/include/linux/ve.h
index 25677757d45c..4f8c06b98381 100644
--- a/include/linux/ve.h
+++ b/include/linux/ve.h
@@ -136,17 +136,6 @@ static inline struct ve_struct *css_to_ve(struct cgroup_subsys_state *css)
extern struct cgroup_subsys_state *ve_get_init_css(struct ve_struct *ve, int subsys_id);
-static inline struct net *ve_net_lock(struct ve_struct *ve)
-{
- rcu_read_lock();
- return rcu_dereference(ve->ve_ns)->net_ns;
-}
-
-static inline void ve_net_unlock(struct ve_struct *ve)
-{
- rcu_read_unlock();
-}
-
#define ve_feature_set(ve, f) \
!!((ve)->features & VE_FEATURE_##f)
More information about the Devel
mailing list