1 #define KMSG_COMPONENT "IPVS"
2 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
4 #include <linux/module.h>
7 #include <asm/string.h>
9 #include <linux/sysctl.h>
36 IP_VS_DBG(10,
"%s(): pe_name \"%s\"\n", __func__,
39 spin_lock_bh(&ip_vs_pe_lock);
44 !try_module_get(pe->
module)) {
50 spin_unlock_bh(&ip_vs_pe_lock);
57 spin_unlock_bh(&ip_vs_pe_lock);
71 request_module(
"ip_vs_pe_%s", name);
86 spin_lock_bh(&ip_vs_pe_lock);
88 if (!list_empty(&pe->
n_list)) {
89 spin_unlock_bh(&ip_vs_pe_lock);
91 pr_err(
"%s(): [%s] pe already linked\n",
101 spin_unlock_bh(&ip_vs_pe_lock);
103 pr_err(
"%s(): [%s] pe already existed "
104 "in the system\n", __func__, pe->
name);
110 spin_unlock_bh(&ip_vs_pe_lock);
121 spin_lock_bh(&ip_vs_pe_lock);
122 if (list_empty(&pe->
n_list)) {
123 spin_unlock_bh(&ip_vs_pe_lock);
124 pr_err(
"%s(): [%s] pe is not in the list. failed\n",
131 spin_unlock_bh(&ip_vs_pe_lock);