Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15619
b: refs/heads/master
c: e627399
h: refs/heads/master
i:
  15617: 28bb08d
  15615: c29820b
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Dec 14, 2005
1 parent 563a9a3 commit fb73005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0d2f16559a9015c4daa8babfc443bf2b8740fbd9
refs/heads/master: e6273993dbcb8d805dd868e2128c3503a3bb1964
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/iscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,9 @@ iscsi_tcp_state_change(struct sock *sk)
conn = (struct iscsi_conn*)sk->sk_user_data;
session = conn->session;

if (sk->sk_state == TCP_CLOSE_WAIT ||
sk->sk_state == TCP_CLOSE) {
if ((sk->sk_state == TCP_CLOSE_WAIT ||
sk->sk_state == TCP_CLOSE) &&
!atomic_read(&sk->sk_rmem_alloc)) {
debug_tcp("iscsi_tcp_state_change: TCP_CLOSE|TCP_CLOSE_WAIT\n");
iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);
}
Expand Down

0 comments on commit fb73005

Please sign in to comment.