Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346262
b: refs/heads/master
c: 1393b59
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Nov 9, 2012
1 parent e89949f commit fb9e9e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70f17b6bd18dfe33f40db7573baa663b866be6ba
refs/heads/master: 1393b59f8c46001c8dbd47078881483cf97813c3
15 changes: 1 addition & 14 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,22 +490,9 @@ static int drbd_recv_short(struct socket *sock, void *buf, size_t size, int flag

static int drbd_recv(struct drbd_tconn *tconn, void *buf, size_t size)
{
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 = MSG_WAITALL | MSG_NOSIGNAL
};
int rv;

oldfs = get_fs();
set_fs(KERNEL_DS);
rv = sock_recvmsg(tconn->data.socket, &msg, size, msg.msg_flags);
set_fs(oldfs);
rv = drbd_recv_short(tconn->data.socket, buf, size, 0);

if (rv < 0) {
if (rv == -ECONNRESET)
Expand Down

0 comments on commit fb9e9e0

Please sign in to comment.