aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@suse.de>2010-05-18 10:33:43 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-05-18 10:37:41 -0400
commit95bb335c0ebe96afe926387a1ef3a096bd884a82 (patch)
tree56115332b4f2f7ef300c36248a6a7d20db2e639d /drivers/scsi/iscsi_tcp.c
parent1b4d0d8ea7b3cbd107f345ab766416f9b38ce66a (diff)
parent9cccde93fed1ca988eb2fb17ab9194bf7b5ed1b0 (diff)
[SCSI] Merge scsi-misc-2.6 into scsi-rc-fixes-2.6
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 02143af7c1af..cdb4fd8cf23b 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -206,8 +206,10 @@ static void iscsi_sw_tcp_conn_set_callbacks(struct iscsi_conn *conn)
206} 206}
207 207
208static void 208static void
209iscsi_sw_tcp_conn_restore_callbacks(struct iscsi_sw_tcp_conn *tcp_sw_conn) 209iscsi_sw_tcp_conn_restore_callbacks(struct iscsi_conn *conn)
210{ 210{
211 struct iscsi_tcp_conn *tcp_conn = conn->dd_data;
212 struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data;
211 struct sock *sk = tcp_sw_conn->sock->sk; 213 struct sock *sk = tcp_sw_conn->sock->sk;
212 214
213 /* restore socket callbacks, see also: iscsi_conn_set_callbacks() */ 215 /* restore socket callbacks, see also: iscsi_conn_set_callbacks() */
@@ -555,7 +557,7 @@ static void iscsi_sw_tcp_release_conn(struct iscsi_conn *conn)
555 return; 557 return;
556 558
557 sock_hold(sock->sk); 559 sock_hold(sock->sk);
558 iscsi_sw_tcp_conn_restore_callbacks(tcp_sw_conn); 560 iscsi_sw_tcp_conn_restore_callbacks(conn);
559 sock_put(sock->sk); 561 sock_put(sock->sk);
560 562
561 spin_lock_bh(&session->lock); 563 spin_lock_bh(&session->lock);