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
f730c848
Commit
f730c848
authored
Feb 08, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drbd: don't open-code kernel_recvmsg()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
86d564c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_receiver.c
+1
-11
No files found.
drivers/block/drbd/drbd_receiver.c
View file @
f730c848
...
...
@@ -468,24 +468,14 @@ static void drbd_wait_ee_list_empty(struct drbd_conf *mdev,
static
int
drbd_recv_short
(
struct
socket
*
sock
,
void
*
buf
,
size_t
size
,
int
flags
)
{
mm_segment_t
oldfs
;
struct
kvec
iov
=
{
.
iov_base
=
buf
,
.
iov_len
=
size
,
};
struct
msghdr
msg
=
{
.
msg_iovlen
=
1
,
.
msg_iov
=
(
struct
iovec
*
)
&
iov
,
.
msg_flags
=
(
flags
?
flags
:
MSG_WAITALL
|
MSG_NOSIGNAL
)
};
int
rv
;
oldfs
=
get_fs
();
set_fs
(
KERNEL_DS
);
rv
=
sock_recvmsg
(
sock
,
&
msg
,
size
,
msg
.
msg_flags
);
set_fs
(
oldfs
);
return
rv
;
return
kernel_recvmsg
(
sock
,
&
msg
,
&
iov
,
1
,
size
,
msg
.
msg_flags
);
}
static
int
drbd_recv
(
struct
drbd_tconn
*
tconn
,
void
*
buf
,
size_t
size
)
...
...
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