[Devel] [PATCH RHEL8 COMMIT] ve/net: drop ve_net_lock()/ve_net_unlock() helpers
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Apr 8 19:07:11 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 399954743511c0f4f0bc85f82156783b351a4dfd
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