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
Kirill Smelkov
linux
Commits
88d2d28b
Commit
88d2d28b
authored
Mar 02, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
parents
720dc34b
9ef0298a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_ctl.c
+2
-2
net/netfilter/nf_log.c
net/netfilter/nf_log.c
+4
-0
No files found.
net/netfilter/ipvs/ip_vs_ctl.c
View file @
88d2d28b
...
...
@@ -808,9 +808,9 @@ __ip_vs_update_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest,
dest
->
u_threshold
=
udest
->
u_threshold
;
dest
->
l_threshold
=
udest
->
l_threshold
;
spin_lock
(
&
dest
->
dst_lock
);
spin_lock
_bh
(
&
dest
->
dst_lock
);
ip_vs_dst_reset
(
dest
);
spin_unlock
(
&
dest
->
dst_lock
);
spin_unlock
_bh
(
&
dest
->
dst_lock
);
if
(
add
)
ip_vs_new_estimator
(
&
dest
->
stats
);
...
...
net/netfilter/nf_log.c
View file @
88d2d28b
...
...
@@ -85,6 +85,8 @@ EXPORT_SYMBOL(nf_log_unregister);
int
nf_log_bind_pf
(
u_int8_t
pf
,
const
struct
nf_logger
*
logger
)
{
if
(
pf
>=
ARRAY_SIZE
(
nf_loggers
))
return
-
EINVAL
;
mutex_lock
(
&
nf_log_mutex
);
if
(
__find_logger
(
pf
,
logger
->
name
)
==
NULL
)
{
mutex_unlock
(
&
nf_log_mutex
);
...
...
@@ -98,6 +100,8 @@ EXPORT_SYMBOL(nf_log_bind_pf);
void
nf_log_unbind_pf
(
u_int8_t
pf
)
{
if
(
pf
>=
ARRAY_SIZE
(
nf_loggers
))
return
;
mutex_lock
(
&
nf_log_mutex
);
rcu_assign_pointer
(
nf_loggers
[
pf
],
NULL
);
mutex_unlock
(
&
nf_log_mutex
);
...
...
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