Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c2e2849f
Commit
c2e2849f
authored
Jan 11, 2005
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PKT_SCHED]: tc actions: disable bhs while lock is held in init path
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
01eccb24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
net/sched/mirred.c
net/sched/mirred.c
+2
-2
net/sched/police.c
net/sched/police.c
+2
-2
No files found.
net/sched/mirred.c
View file @
c2e2849f
...
...
@@ -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
);
...
...
net/sched/police.c
View file @
c2e2849f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment