Commit c2e2849f authored by Patrick McHardy's avatar Patrick McHardy

[PKT_SCHED]: tc actions: disable bhs while lock is held in init path

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 01eccb24
......@@ -126,7 +126,7 @@ tcf_mirred_init(struct rtattr *rta, struct rtattr *est, struct tc_action *a,
}
}
spin_lock(&p->lock);
spin_lock_bh(&p->lock);
p->action = parm->action;
p->eaction = parm->eaction;
if (parm->ifindex) {
......@@ -137,7 +137,7 @@ tcf_mirred_init(struct rtattr *rta, struct rtattr *est, struct tc_action *a,
dev_hold(dev);
p->ok_push = ok_push;
}
spin_unlock(&p->lock);
spin_unlock_bh(&p->lock);
if (ret == ACT_P_CREATED)
tcf_hash_insert(p);
......
......@@ -224,7 +224,7 @@ static int tcf_act_police_locate(struct rtattr *rta, struct rtattr *est,
}
}
/* No failure allowed after this point */
spin_lock(&p->lock);
spin_lock_bh(&p->lock);
if (R_tab != NULL) {
qdisc_put_rtab(p->R_tab);
p->R_tab = R_tab;
......@@ -254,7 +254,7 @@ static int tcf_act_police_locate(struct rtattr *rta, struct rtattr *est,
gen_replace_estimator(&p->bstats, &p->rate_est, p->stats_lock, est);
#endif
spin_unlock(&p->lock);
spin_unlock_bh(&p->lock);
if (ret != ACT_P_CREATED)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment