Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163111
b: refs/heads/master
c: 1329e3f
h: refs/heads/master
i:
  163109: a3c7cd9
  163107: 511bb2e
  163103: da31e8d
v: v3
  • Loading branch information
Paolo Bonzini authored and David Teigland committed Aug 24, 2009
1 parent 7907740 commit f6de969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 063c4c99630c0b06afad080d2a18bda64172c1a2
refs/heads/master: 1329e3f2c898cfabb6ed236d3fb8c1725197af53
7 changes: 2 additions & 5 deletions trunk/fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,6 @@ void dlm_lowcomms_commit_buffer(void *mh)
static void send_to_sock(struct connection *con)
{
int ret = 0;
ssize_t(*sendpage) (struct socket *, struct page *, int, size_t, int);
const int msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL;
struct writequeue_entry *e;
int len, offset;
Expand All @@ -1294,8 +1293,6 @@ static void send_to_sock(struct connection *con)
if (con->sock == NULL)
goto out_connect;

sendpage = con->sock->ops->sendpage;

spin_lock(&con->writequeue_lock);
for (;;) {
e = list_entry(con->writequeue.next, struct writequeue_entry,
Expand All @@ -1310,8 +1307,8 @@ static void send_to_sock(struct connection *con)

ret = 0;
if (len) {
ret = sendpage(con->sock, e->page, offset, len,
msg_flags);
ret = kernel_sendpage(con->sock, e->page, offset, len,
msg_flags);
if (ret == -EAGAIN || ret == 0) {
cond_resched();
goto out;
Expand Down

0 comments on commit f6de969

Please sign in to comment.