[RHEL8,COMMIT] ve/net: drop ve_net_lock()/ve_net_unlock() helpers

Submitted by Konstantin Khorenko on April 8, 2019, 3:44 p.m.

Details

Message ID 201904081544.x38FikWc020029@finist_el8beta.work.ct
State New
Series "connector: avoid RCU read-side critical section in cn_init_ve()"
Headers show

Commit Message

Konstantin Khorenko April 8, 2019, 3:44 p.m.
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@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@virtuozzo.com>
---
 include/linux/ve.h | 11 -----------
 1 file changed, 11 deletions(-)

Patch hide | download patch | download mbox

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)