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
c8c7840e
Commit
c8c7840e
authored
7 years ago
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dlm: switch to sock_recvmsg()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1e4ed1b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/dlm/lowcomms.c
fs/dlm/lowcomms.c
+2
-2
No files found.
fs/dlm/lowcomms.c
View file @
c8c7840e
...
@@ -675,9 +675,9 @@ static int receive_from_sock(struct connection *con)
...
@@ -675,9 +675,9 @@ static int receive_from_sock(struct connection *con)
nvec
=
2
;
nvec
=
2
;
}
}
len
=
iov
[
0
].
iov_len
+
iov
[
1
].
iov_len
;
len
=
iov
[
0
].
iov_len
+
iov
[
1
].
iov_len
;
iov_iter_kvec
(
&
msg
.
msg_iter
,
READ
|
ITER_KVEC
,
iov
,
nvec
,
len
);
r
=
ret
=
kernel_recvmsg
(
con
->
sock
,
&
msg
,
iov
,
nvec
,
len
,
r
=
ret
=
sock_recvmsg
(
con
->
sock
,
&
msg
,
MSG_DONTWAIT
|
MSG_NOSIGNAL
);
MSG_DONTWAIT
|
MSG_NOSIGNAL
);
if
(
ret
<=
0
)
if
(
ret
<=
0
)
goto
out_close
;
goto
out_close
;
else
if
(
ret
==
len
)
else
if
(
ret
==
len
)
...
...
This diff is collapsed.
Click to expand it.
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