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
cac3aecd
Commit
cac3aecd
authored
Apr 20, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: In sock_alloc_send_pskb, add __GFP_REPEAT when __GFP_WAIT.
parent
6f06499b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
net/core/sock.c
net/core/sock.c
+5
-0
No files found.
net/core/sock.c
View file @
cac3aecd
...
@@ -768,9 +768,14 @@ struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
...
@@ -768,9 +768,14 @@ struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
unsigned
long
data_len
,
int
noblock
,
int
*
errcode
)
unsigned
long
data_len
,
int
noblock
,
int
*
errcode
)
{
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
unsigned
int
gfp_mask
;
long
timeo
;
long
timeo
;
int
err
;
int
err
;
gfp_mask
=
sk
->
allocation
;
if
(
gfp_mask
&
__GFP_WAIT
)
gfp_mask
|=
__GFP_REPEAT
;
timeo
=
sock_sndtimeo
(
sk
,
noblock
);
timeo
=
sock_sndtimeo
(
sk
,
noblock
);
while
(
1
)
{
while
(
1
)
{
err
=
sock_error
(
sk
);
err
=
sock_error
(
sk
);
...
...
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