Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154018
b: refs/heads/master
c: 3238249
h: refs/heads/master
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Jun 21, 2009
1 parent 1820e66 commit 9f89dc5
Show file tree
Hide file tree
Showing 2 changed files with 10 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: d355e57d58193b89283b0c8153649f0427b0bdad
refs/heads/master: 32382492eb18e8e20be382a1743d0c08469d1e84
14 changes: 9 additions & 5 deletions trunk/drivers/scsi/iscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ static int iscsi_sw_tcp_xmit_segment(struct iscsi_tcp_conn *tcp_conn,

if (r < 0) {
iscsi_tcp_segment_unmap(segment);
if (copied || r == -EAGAIN)
break;
return r;
}
copied += r;
Expand All @@ -275,11 +273,17 @@ static int iscsi_sw_tcp_xmit(struct iscsi_conn *conn)

while (1) {
rc = iscsi_sw_tcp_xmit_segment(tcp_conn, segment);
if (rc < 0) {
/*
* We may not have been able to send data because the conn
* is getting stopped. libiscsi will know so propogate err
* for it to do the right thing.
*/
if (rc == -EAGAIN)
return rc;
else if (rc < 0) {
rc = ISCSI_ERR_XMIT_FAILED;
goto error;
}
if (rc == 0)
} else if (rc == 0)
break;

consumed += rc;
Expand Down

0 comments on commit 9f89dc5

Please sign in to comment.