Skip to contentSkip to conversation

iscsi_tcp: remove sk_sleep check

PATCH New [email protected] 1 participant 1 message May 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iscsi_tcp: remove sk_sleep check

From: Mike Christie <[email protected]>

There is no need to call sk_sleep before calling wake_up_interruptible, because the wait_queue_head is now with the socket.

This patch is made over Linus's tree.

---
 drivers/scsi/iscsi_tcp.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/iscsi_tcp.c +2 -4
index bf55d30..fec47de 100644
@@ -601,10 +601,8 @@ static void iscsi_sw_tcp_conn_stop(struct iscsi_cls_conn *cls_conn, int flag)
 	set_bit(ISCSI_SUSPEND_BIT, &conn->suspend_rx);
 	write_unlock_bh(&tcp_sw_conn->sock->sk->sk_callback_lock);
 
-	if (sk_sleep(sock->sk)) {
-		sock->sk->sk_err = EIO;
-		wake_up_interruptible(sk_sleep(sock->sk));
-	}
+	sock->sk->sk_err = EIO;
+	wake_up_interruptible(sk_sleep(sock->sk));
 
 	iscsi_conn_stop(cls_conn, flag);
 	iscsi_sw_tcp_release_conn(conn);
Signature · 1 line
1.6.6.1