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
4c99a189
Commit
4c99a189
authored
Feb 22, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETLINK]: Remove buggy and useless rcv queue wakeup tests.
parent
817a3f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
net/netlink/af_netlink.c
net/netlink/af_netlink.c
+8
-12
No files found.
net/netlink/af_netlink.c
View file @
4c99a189
...
@@ -706,12 +706,10 @@ static int netlink_recvmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -706,12 +706,10 @@ static int netlink_recvmsg(struct kiocb *iocb, struct socket *sock,
netlink_dump
(
sk
);
netlink_dump
(
sk
);
out:
out:
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
<=
sk
->
rcvbuf
/
2
)
{
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
==
0
)
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
==
0
)
clear_bit
(
0
,
&
nlk
->
state
);
clear_bit
(
0
,
&
nlk
->
state
);
if
(
!
test_bit
(
0
,
&
nlk
->
state
))
if
(
!
test_bit
(
0
,
&
nlk
->
state
))
wake_up_interruptible
(
&
nlk
->
wait
);
wake_up_interruptible
(
&
nlk
->
wait
);
}
return
err
?
:
copied
;
return
err
?
:
copied
;
}
}
...
@@ -722,12 +720,10 @@ void netlink_data_ready(struct sock *sk, int len)
...
@@ -722,12 +720,10 @@ void netlink_data_ready(struct sock *sk, int len)
if
(
nlk
->
data_ready
)
if
(
nlk
->
data_ready
)
nlk
->
data_ready
(
sk
,
len
);
nlk
->
data_ready
(
sk
,
len
);
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
<=
sk
->
rcvbuf
/
2
)
{
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
==
0
)
if
(
skb_queue_len
(
&
sk
->
receive_queue
)
==
0
)
clear_bit
(
0
,
&
nlk
->
state
);
clear_bit
(
0
,
&
nlk
->
state
);
if
(
!
test_bit
(
0
,
&
nlk
->
state
))
if
(
!
test_bit
(
0
,
&
nlk
->
state
))
wake_up_interruptible
(
&
nlk
->
wait
);
wake_up_interruptible
(
&
nlk
->
wait
);
}
}
}
/*
/*
...
...
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