Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132305
b: refs/heads/master
c: fba91af
h: refs/heads/master
i:
  132303: 7c1807f
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 11, 2009
1 parent 971a006 commit 5a5e8f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: d7371c41b0cda782256b1df759df4e8d4724584c
refs/heads/master: fba91afbec2c004e2c8733ae9e0ca6998e962c64
10 changes: 9 additions & 1 deletion trunk/net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen,
int err, sent = 0;

if (unlikely(!sock))
return -ENOTCONN;
return -ENOTSOCK;

clear_bit(SOCK_ASYNC_NOSPACE, &sock->flags);
if (base != 0) {
Expand Down Expand Up @@ -594,6 +594,10 @@ static int xs_udp_send_request(struct rpc_task *task)
}

switch (status) {
case -ENOTSOCK:
status = -ENOTCONN;
/* Should we call xs_close() here? */
break;
case -EAGAIN:
xs_nospace(task);
break;
Expand Down Expand Up @@ -693,6 +697,10 @@ static int xs_tcp_send_request(struct rpc_task *task)
}

switch (status) {
case -ENOTSOCK:
status = -ENOTCONN;
/* Should we call xs_close() here? */
break;
case -EAGAIN:
xs_nospace(task);
break;
Expand Down

0 comments on commit 5a5e8f4

Please sign in to comment.