Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67686
b: refs/heads/master
c: d66f827
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Caulfield authored and Steven Whitehouse committed Oct 10, 2007
1 parent 4ab7ada commit 7e47ab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 49e61f2ef6f7d1d0296e3e30d366b28e0ca595c2
refs/heads/master: d66f8277f53407754f50ae6bada68f1b68d04d48
7 changes: 4 additions & 3 deletions trunk/fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,14 +1264,15 @@ static void send_to_sock(struct connection *con)
if (len) {
ret = sendpage(con->sock, e->page, offset, len,
msg_flags);
if (ret == -EAGAIN || ret == 0)
if (ret == -EAGAIN || ret == 0) {
cond_resched();
goto out;
}
if (ret <= 0)
goto send_error;
} else {
}
/* Don't starve people filling buffers */
cond_resched();
}

spin_lock(&con->writequeue_lock);
e->offset += ret;
Expand Down

0 comments on commit 7e47ab4

Please sign in to comment.